-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow endpoint of the Processing Server #1083
Conversation
895adce
to
439dde4
Compare
try: | ||
tasks_list = workflow.splitlines() | ||
tasks = [ProcessorTask.parse(task_str) for task_str in tasks_list if task_str.strip()] | ||
except BaseException as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need more specific exceptions in ocrd/ocrd/task_sequence.py
...
There is a need of request revocation method to remove stuck requests from the internal queue of a workspace. This situation happens when a processing job fails, and there are other jobs depending on the failed job. A simple solution would be to cancel all jobs that depend on the failed job. Then further cancel all jobs that are depending on the cancelled jobs. EDIT: This is implemented. |
Merge the latest master state
0a46eac
to
2373537
Compare
Things to be considered yet (maybe not in #1083 directly since WebAPI docs adaptations would be required too):
|
Adding it as an extra note so it does not disappear somewhere above. |
To not generate too much output Co-authored-by: Mehmed Mustafa <[email protected]>
Co-authored-by: Mehmed Mustafa <[email protected]>
Good idea. Note: the current spec still says we should use
Also 👍 But @joschrew already implemented e6ce39e as IMO this is ambiguous: as of the spec, this looks like querying the workflow definition. The current spec still says we should use Both processing step and workflow status endpoints are also explained in the human-readable readme in these terms.
IIUC @joschrew already found a way of doing that in the aforementioned commit. That solves it, right? |
We still need a network client CLI implementation for the new workflow endpoint. Should we track this in a new issue? |
Anything you see in the spec should be up-to-date and matching with core v2.67.2. If that is not the case, let me know. Regarding the network client CLI - that idea was left behind at some point and needs to be implemented. A separate issue makes sense. |
oops, sry, I did not look at master – everything is in order between spec and core, as you stated.
|
Endpoint to run a workflow with the processing-server
Usage described here