PrefectHQ
prefect
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Support AnyIO 4.14 task group interface
codex/anyio-414-gather-task-group
1 hour ago
Fix stale EventLoopThread globals after fork causing subprocess deadlocks After fork(), _reset_after_fork_in_child() resets each EventLoopThread instance's internal state (_loop = None) but did not clear the module-level _global_loop and _run_sync_loop references. get_run_sync_loop() and get_global_loop() check thread.is_alive() and .running, both of which incorrectly return True for the dead-but-inherited thread (the tstate lock from the parent thread is still held in the child, so is_alive() never flips to False). The stale instance was therefore returned, and its submit() path called start() on the already-started Thread object, raising RuntimeError and killing the subprocess silently. This caused intermittent 90-second timeouts in the concurrency lease integration tests: the test forks a subprocess to acquire and renew a lease, but if the pytest-xdist worker had previously created a run-sync loop (from an earlier test), the forked child inherited the stale reference and crashed before ever acquiring the lease. Fix: clear _global_loop and _run_sync_loop to None in the fork handler so the getter functions create fresh EventLoopThread instances in the child process. Co-Authored-By: bot_apk <apk@cognition.ai>
devin/1781629375-fix-fork-stale-loop-refs
1 hour ago
Add cancelling timeout cleanup producer (#22238)
main
2 hours ago
fix: use single backticks in docstrings per repo convention
devin/1781621778-fix-perpetual-service-recovery
3 hours ago
Make cancelling timeout cleanup enqueue recoverable
alexs/oss-7942-oss-07-oss-cancelling-timeout-producer
4 hours ago
Share orchestration clients across automation actions Every triggered automation action constructed a fresh OrchestrationClient (or PrefectServerEventsAPIClient), each of which built a new httpx ASGITransport, called create_app(), and re-ran Settings.hash_key() + setup_logging(). Flamegraphs against a trigger-heavy server show this costing ~7% CPU per action. Cache one open client per (subclass, settings identity) and inject the per-automation Prefect-Automation-ID / Prefect-Automation-Name headers through a contextvar-driven httpx request hook, so per-call tagging is preserved without paying the construction cost on every action. The existing `async with await self.orchestration_client(...)` callsites are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fatih-acar:share-orchestration-clients
7 hours ago
Share orchestration clients across automation actions Every triggered automation action constructed a fresh OrchestrationClient (or PrefectServerEventsAPIClient), each of which built a new httpx ASGITransport, called create_app(), and re-ran Settings.hash_key() + setup_logging(). Flamegraphs against a trigger-heavy server show this costing ~7% CPU per action. Cache one open client per (subclass, settings identity) and inject the per-automation Prefect-Automation-ID / Prefect-Automation-Name headers through a contextvar-driven httpx request hook, so per-call tagging is preserved without paying the construction cost on every action. The existing `async with await self.orchestration_client(...)` callsites are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fatih-acar:share-orchestration-clients
9 hours ago
fix(server): snapshot block registry before iterating in auto-registration (#22297) Co-authored-by: Alexander Streed <ajstreed1@gmail.com>
main
21 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
[codex] Support AnyIO 4.14 task group interface
#22309
1 hour ago
759b86d
codex/anyio-414-gather-task-group
CodSpeed Performance Gauge
0%
Fix stale EventLoopThread globals after fork causing subprocess deadlocks
#22308
2 hours ago
b749b47
devin/1781629375-fix-fork-stale-loop-refs
CodSpeed Performance Gauge
0%
fix(services): force-reschedule perpetual services after Redis disruption
#22303
4 hours ago
d060032
devin/1781621778-fix-perpetual-service-recovery
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs