Skip to content

gather sleeps for a polling interval after every result is ready #710

Open

Description

@IlyaKhalafi

gather always sleeps after polling, including when that poll retrieved the final result. With periodicity=5 an already-ready task therefore waits another five seconds.

A native probe stores a result in InmemoryResultBackend, builds an AsyncTaskiqTask for it, and calls gather(task, periodicity=5). An outer 100 ms timeout expires while gather is sleeping despite the result already being ready.

The polling delay should only apply while there are results still to fetch. The existing monotonic-clock PR changes deadline measurement and does not change this final sleep.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions