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

retention_rules: error when applying rule to deleted workflow #693

Closed
mdonadoni opened this issue Jul 11, 2024 · 0 comments · Fixed by reanahub/reana-workflow-controller#595 or #697
Assignees
Labels

Comments

@mdonadoni
Copy link
Member

When a workflow is deleted, its workspace directory is deleted, too. This causes an error when applying retention rules, such as:

Applying rule <rule_id> to workflow <workflow_id>: 'path/to/delete/*' will be deleted from '/var/reana/users/<user_id>/workflows/<workflow_id>'
Error while applying rule <rule_id>: [Errno 2] No such file or directory: '/var/reana/users/<user_id>/workflows/<workflow_id>'
Setting the status of rule <rule_id> to `active`

We should handle this case in the script that applies retention rules, but we should also probably set the status of retention rules for deleted workflows to inactive.

@mdonadoni mdonadoni self-assigned this Aug 7, 2024
mdonadoni added a commit to mdonadoni/reana-workflow-controller that referenced this issue Aug 7, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this issue Aug 7, 2024
@mdonadoni mdonadoni added this to 0.95.0 Aug 8, 2024
@mdonadoni mdonadoni moved this to In review in 0.95.0 Aug 8, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this issue Aug 9, 2024
mdonadoni added a commit to mdonadoni/reana-workflow-controller that referenced this issue Aug 9, 2024
mdonadoni added a commit to mdonadoni/reana-workflow-controller that referenced this issue Aug 26, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this issue Aug 26, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this issue Aug 29, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in 0.95.0 Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment