Repository navigation
cleverage/ui-process-bundle#143 - Add demo.ui.stop - #79
Merged
Merged
Conversation
Slow process (60 items, 1 second each) to stop from the UI ("Stop the process"
action of the executions list), or to kill to see a "Not responding" execution
(cleverage/ui-process-bundle#144).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Demonstration of cleverage/ui-process-bundle#143 (stop a running process execution from the UI) and cleverage/ui-process-bundle#144 (not responding executions), implemented by cleverage/ui-process-bundle#146, relying on cleverage/process-bundle#266 (stop checkers, released in v5.3).
bin/console cleverage:process:execute demo.ui.stop -vv # or launch it from the UIdemo.ui.stopiterates over 60 items, waiting 1 second for each one (CallbackTransformercallingusleep), so about 1 minute without stop request:stoppedstatus before its next item, ~5 s later at most (process_execution.heartbeat_interval) (checked, also with a stop request written directly in the database).kill -9): the execution staysstarted; once older thanprocess_execution.stale_after(900 s, simulated by moving the heartbeat back in the database), it is displayed as "Not responding" and "Mark as failed" sets itfailed, ended at its last heartbeat (checked).Requires cleverage/ui-process-bundle#146 (and process-bundle v5.3): without it, the process runs to its end and there is no "Stop" action.
Requirements
Breaking changes
None (new demo process only).
🤖 Generated with Claude Code