-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Pre-release] Workflows are shown as not archived after workflow GC #11367
Comments
workflows.argoproj.io/workflow-archiving-status=Archived
This should probably be fixed in the backend. Those workflows with labels "Pending" are the ones in the database. They didn't become "Archived" yet since they were still being archived. We should change it to "Archived" before saving in the database. |
Thanks. argo-workflows/server/workflow/workflow_server.go Lines 143 to 144 in 97b6fa8
It is easy to save workflows as
If you agree with changing the server side, I try to write a PR. |
We can simply the logic in the first link you posted to the following: mergedWfs = append(mergedWfs, v[0]) Yes that's good direction. |
You can’t label a workflow as What about a new |
@alexec I meant that we don't modify the live workflow YAML at all. We only use modify the YAML that's sent to the database. So in the live workflow, the archival status will still reflect the true status. The archived workflow YAML in the database will be have "Archived" label since it's already saved in the database. |
OK, I think we should distinguish the following status for clarification.
We should distinguish 2 from 3 for batch deletion on the frontend or convenience. |
Sounds good to me. |
Pre-requisites
:latest
What happened/what you expected to happen?
AhivedWorkflows are marked
Archive: false
in UI after workflows GC.Archived
.Pending
Should we change this logic?
argo-workflows/ui/src/models/workflows.ts
Lines 544 to 546 in 97b6fa8
Version
master
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
ANY Workflows
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: