Skip to content

Flow run limit reached for worker even when nothing is "Running" and flows get accumulated in "Late" #17628

@steinskeeper

Description

@steinskeeper

Bug summary

Problem

Worker shows Flow run limit reached; 15 flow runs in progress even when no flow is running and all the flows gets accumulated in Late.

What fixes it temporarily

Only upon closing the worker and starting again do flows from Late start running.

When is this behaviour triggred

Not sure, but haven't had this issue before. Seems recent.

Additional details

  • Worker is started using prefect worker start -p "my-pool" -n "dannylinux" --limit 15
  • No concurrency limits are set anywhere else.

Version info

prefect version
Version:             3.2.13
API version:         0.8.4
Python version:      3.13.2
Git commit:          12800297
Built:               Fri, Mar 14, 2025 8:37 PM
OS/Arch:             linux/x86_64
Profile:             local
Server type:         cloud
Pydantic version:    2.10.6

Additional context

Not sure if it is relevant, but this is one error before the continuous loop of Flow run limit reached

 /usr/lib/python3.13/asyncio/selector_events.py:869: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=6 read=idle write=<idle, bufsize=0>>
0|run      |   _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
0|run      | ResourceWarning: Enable tracemalloc to get the object allocation traceback

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions