You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
StopTask: identify a process stopped on purpose as stopped, not as failed #337
The stop task (StopTask) is documented as "Immediately stops the process and marks its history as failed". A stop is not a failure, though: it is a decision of the process (e.g. not going on when the source file does not exist), and the process manager already handles it so (tasks finalized, cleverage_process.end event, exit code 0, parent process going on). But a stopped process cannot be told apart:
its history is flagged as failed and the Process … failed log is written (at the failed_level);
the cleverage_process.end event does not tell that the process was stopped: the UI records the execution as Finish, while it has a Stopped status (only used for the stop checkers).
Decision: keep the stop semantics (not a failure), and identify a stopped process clearly:
new ProcessHistory::STATE_STOPPED (setStopped(), isStopped()), set by the StopTask instead of the failed state;
Process <code> stopped log, at the success_level;
new ProcessEvent::isProcessStopped() on the cleverage_process.end event, used by the UI to record the execution as Stopped;
documentation of the stop task (difference with a failure, example on a missing source file).
Found during the global audit after the 5.4 release (process-bundle-audit.md#101).
changed the title [-]StopTask: the process is marked as failed but does not fail (exit code 0, parent process goes on)[/-][+]StopTask: identify a process stopped on purpose as stopped, not as failed[/+]on Oct 23, 2026
Activity
#337 - Revert "StopTask: make the process fail for real": a stopped p…
#337 - StopTask: a process stopped on purpose ends as stopped, not as…
[-]StopTask: the process is marked as failed but does not fail (exit code 0, parent process goes on)[/-][+]StopTask: identify a process stopped on purpose as stopped, not as failed[/+]Merge pull request #338 from cleverage/337