Repository navigation
Workflow definition cli and api - #18
Merged
Merged
Conversation
Move generic workflow-definition logic from ResInsight's taskmaestro helper into taskmaestro so editors can use public API instead of private internals: - definition: convert workflow.yaml/input.yaml to and from an editable graph definition, from registered workflows, with atomic writes, backups and a value filter for saved inputs - introspection: describe workflows and task schemas, with a schema generator hook for extra type annotations; the CLI now uses it - discovery.load_registry: load all entry points, reporting broken ones - yaml_config: public yaml_load, load_workflow_only, resolve_task and workflow_imports - DefinitionError exception Bump version to 0.4.0.
Accept a registered workflow name wherever a workflow YAML path is accepted (run, validate, graph, workflow describe), add 'workflow list', and report the workflow 'source' in 'workflow describe' output. New public API: load_registered_workflow, load_input_configuration, registered_workflow, describe_registered_workflow and WorkflowLookupError, whose message lists the registered workflows. Closes #14
pydantic 2.14 also stores a module-level parametrized model such as ObjectModel[str] in the caller's globals under its bracketed name, so the alias lookup could return 'ObjectModel[str]' instead of the alias.
error_payload calls ValidationError.errors(include_input=False), which pydantic added in 2.4. The test suite fails on 2.0-2.3 and passes on 2.4 and later.
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.
Fixes #14.