Skip to content

When a ponos task completes, promote all remaining worker activities to failed

Refs https://redmine.teklia.com/issues/8042

In order to reprocess failed elements, all worker activities of finalized tasks (completed, erroneous, stopped) must be in a final state too.

This means that when a task get a state update, it must:

  1. check if it's the last one of its run & depth & worker run to reach a final stage
  2. if so, update all worker activity in queued|started state of that process & configuration & model version (using worker run infos) to failed