Repository navigation
#372 - Name the process and the task of an unknown task reference, leave the invalid processes out of the listings - #378
Merged
Merged
Conversation
…ave the invalid processes out of the listings 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
Fixes #372.
outputs/error_outputsof a task or by theentry_point/end_pointof a process, and that is not a task of the process, now throws anInvalidProcessConfigurationExceptionnaming the process, the task and the key holding the reference (e.g.Unknown task 'missing' in the 'outputs' of the task 'read' (from process: app.import)), instead of aMissingTaskConfigurationException(No task configuration with code : missing).ProcessConfigurationRegistry::getProcessConfigurations()leaves out a process whose configuration is not valid, with an error log on thecleverage_processchannel (new optional logger argument), instead of making every listing fail (cleverage:process:list, lists of the UI). Getting or executing this process by its code still throws.Rejecting such configurations when the container is compiled is left to a separate ticket (deprecation in 5.x, error in v6).
cleverage:ui-process:purge-logscan still fail on an invalid process that has executions recorded: ui-process-bundle ticket to follow.Requirements
Breaking changes
None: the invalid processes already failed when executed, they no longer make the listings fail. The exception thrown for an unknown task reference is now an
InvalidProcessConfigurationExceptioninstead of aMissingTaskConfigurationException(both extend\UnexpectedValueExceptionand implementProcessExceptionInterface).🤖 Generated with Claude Code