Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Commit 2377aa8

Browse files
committed
Let's not have lots of flows waiting for concurrency slots
That risks them timing out, since Prefect doesn't seem to release them FIFO
1 parent 497f8fa commit 2377aa8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

punchpipe/flows/fcorona.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def construct_f_corona_background_scheduler_flow(pipeline_config_path=None, sess
118118
logger.info("Flow 'construct_f_corona_background' is not enabled---halting scheduler")
119119
return 0
120120

121-
max_flows = 2 * pipeline_config['flows']['construct_f_corona_background'].get('concurrency_limit', 1000)
121+
max_flows = pipeline_config['flows']['construct_f_corona_background'].get('concurrency_limit', 1000)
122122
existing_flows = (session.query(Flow)
123123
.where(Flow.flow_type == 'construct_f_corona_background')
124124
.where(Flow.state.in_(["planned", "launched", "running"])).count())

punchpipe/flows/stray_light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def construct_stray_light_scheduler_flow(pipeline_config_path=None, session=None
293293
logger.info("Flow 'construct_stray_light' is not enabled---halting scheduler")
294294
return
295295

296-
max_flows = 2 * pipeline_config['flows']['construct_stray_light'].get('concurrency_limit', 1000)
296+
max_flows = pipeline_config['flows']['construct_stray_light'].get('concurrency_limit', 1000)
297297
existing_flows = (session.query(Flow)
298298
.where(Flow.flow_type == 'construct_stray_light')
299299
.where(Flow.state.in_(["planned", "launched", "running"])).count())

0 commit comments

Comments
 (0)