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

Date/time in metadata.creationTimestamp and status.startedAt is the same when using archived workflows endpoint #11003

Open
2 of 3 tasks
pieterlukasse opened this issue Apr 28, 2023 · 4 comments
Labels

Comments

@pieterlukasse
Copy link

pieterlukasse commented Apr 28, 2023

Pre-requisites

  • I have double-checked my configuration
  • I can confirm the issues exists when I tested with :latest
  • I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?

I have a workflow that was pending for a while before it started (queue was full).

When I retrieve its details using the following endpoint
https://localhost:2746/api/v1/archived-workflows/65af9a68-148c-4241-82f7-efb9e1edacc7?namespace=argo
I get metadata.creationTimestamp != status.startedAt. This is expected.

However, when using the list endpoint
https://localhost:2746/api/v1/archived-workflows?namespace=argo&listOptions.fieldSelector=spec.startedAt%3E2023-03-27T22:00:00.000Z,spec.startedAt%3C2023-04-28T22:00:00.000Z&listOptions.limit=10
I get metadata.creationTimestamp == status.startedAt. This is NOT expected.

Version

latest

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.

Version details: {"version":"untagged",
"buildDate":"2023-04-28T02:12:04Z",
"gitCommit":"91f2a4548832d1a669ed2cc32623ead83013fc97","gitTag":"untagged",
"gitTreeState":"clean","goVersion":"go1.19.8","compiler":"gc","platform":"linux/arm64"}

Try submitting multiple dummy workflows until some get into "pending":

`argo submit -n argo --watch https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/artifact-passing.yaml`

Logs from the workflow controller

kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

Not super relevant. The bug is clear.

Logs from in your workflow's wait container

kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

Not super relevant. The bug is clear.
@juliev0
Copy link
Contributor

juliev0 commented May 4, 2023

So, you're saying that the actual data for the Workflow that comes back from the call is incorrect? Can you post the responses to the two api calls?

@pieterlukasse
Copy link
Author

pieterlukasse commented May 5, 2023

@juliev0 yes, the response from the 2nd call is incorrect. As mentioned above:

For the first call I get metadata.creationTimestamp != status.startedAt. This is expected.
For the 2nd call I get I get metadata.creationTimestamp == status.startedAt. This is NOT expected.

Are you not able to reproduce it?

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

@stale stale bot added the problem/stale This has not had a response in some time label Jun 18, 2023
@terrytangyuan terrytangyuan removed the problem/stale This has not had a response in some time label Sep 20, 2023
@tooptoop4
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants