TECHNOLOGY

Argo CronWorkflow completion thresholds can be overshot

In this article
THE QUICK TAKE

Use monotonic threshold conditions for cumulative completion counters and account separately for child workflows that were already admitted.

Stop scheduling after a successful research campaign

A recurring research workflow should stop launching new attempts once enough successful reports have been produced. Argo’s CronWorkflow guide offers stopStrategy.expression based on child outcomes. The condition governs future scheduling. It should not be interpreted as an exact cap on eventual successful reports when some child workflows are already running before the threshold becomes visible.

Read the counters as completed child outcomes

The variables reference defines succeeded and failed counters for child workflows. Scheduling a child and completing it are different events. A schedule can launch another child while an earlier analysis is still working. When the earlier child succeeds and satisfies the stop condition, the later child can remain in flight and subsequently produce another completed report. That outcome can follow the intended scheduling rule.

Prefer a threshold that remains true

The guide recommends greater-than-or-equal conditions over equality for this reason. A counter that advances beyond a desired value should not accidentally make the stopping expression false again. Express the target as a cumulative threshold when that is the business rule. An exact count requirement needs additional admission and coordination design; changing equality syntax cannot undo work that was already authorized and started before a completion was observed.

Keep scheduling gates and run state separate

The field reference distinguishes the CronWorkflow’s scheduling settings from the execution of its children. A per-tick condition, a stopped schedule and a running child are different facts. Inspect active children before promising that no further report can arrive. Task budgets should include admitted unfinished work, rather than count only the reports already complete when the scheduling threshold is checked.

Explain the final campaign count using its timeline

Record child admission times, completion outcomes and the point at which new scheduling stopped. Tool observations connect those events. A final count above the threshold can then be explained by overlapping admitted work instead of a broken stop expression. If exact campaign size is essential, review the admission policy against execution duration and acceptance rules before starting the campaign, keeping successful report delivery distinct from the scheduler’s decision to stop creating future children.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles