Skip to content
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

fix(set_workflow_status): publish workflows to submission queue (#691) #691

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

mdonadoni
Copy link
Member

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
set_workflow_status in workflow-controller.

Depends on #689
Closes #690

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 1, 2024
…ahub#691)

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
`set_workflow_status` in workflow-controller.

Closes reanahub#690
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 20 lines in your changes missing coverage. Please review.

Project coverage is 60.00%. Comparing base (fbf6ba1) to head (6378451).
Report is 1 commits behind head on maint-0.9.

Current head 6378451 differs from pull request most recent head 704d45d

Please upload reports for the commit 704d45d to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##           maint-0.9     #691      +/-   ##
=============================================
+ Coverage      59.46%   60.00%   +0.54%     
=============================================
  Files             32       32              
  Lines           3298     3328      +30     
=============================================
+ Hits            1961     1997      +36     
+ Misses          1337     1331       -6     
Files Coverage Δ
reana_server/rest/workflows.py 52.74% <60.00%> (-0.80%) ⬇️

... and 3 files with indirect coverage changes

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 2, 2024
…ahub#691)

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
`set_workflow_status` in workflow-controller.

Closes reanahub#690
@mdonadoni mdonadoni changed the base branch from master to maint-0.9 July 2, 2024 08:05
@mdonadoni mdonadoni marked this pull request as ready for review July 2, 2024 13:55
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 2, 2024
…ahub#691)

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
`set_workflow_status` in workflow-controller.

Closes reanahub#690
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 3, 2024
…ahub#691)

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
`set_workflow_status` in workflow-controller.

Closes reanahub#690
@@ -1374,6 +1413,10 @@ def set_workflow_status(workflow_id_or_name, user): # noqa
description: Required. New workflow status.
required: true
type: string
enum:
- start
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this may look a bit inconsistent, it would be preferable to use either "start/stop/delete" (verbs) or "started/stopped/deleted" (nouns) everywhere ... but I guess this may not be for now.

(... for the API 1.0 stabilisation we could also clean mixing params/options for execution with all-runs/workspace for deletion...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…ahub#691)

When starting a new workflow, publish the workflow to the submission
queue instead of executing the workflow immediately by calling
`set_workflow_status` in workflow-controller.

Closes reanahub#690
@mdonadoni mdonadoni merged commit 6e35bd7 into reanahub:maint-0.9 Jul 4, 2024
12 checks passed
@mdonadoni mdonadoni deleted the no-skip-queue branch July 4, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set_workflow_status: starting workflow should queue it
2 participants