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

[#636] Add special case handling of cron workflow status #637

Merged
merged 4 commits into from
May 26, 2023

Conversation

flaviuvadan
Copy link
Collaborator

@flaviuvadan flaviuvadan commented May 26, 2023

Pull Request Checklist

Description of PR

Currently, the Argo server does not return cron workflow statuses when a users' cron workflow does not execute immediately post submission. So, Nones are returned for the independent fields of the cron workflow status. While the status is indeed optional, the fields are not! This PR adds a special case for handling this in the service. I am not sure whether this is a feature or a bug upstream in Argo Workflows.

CC: @iameskild I was able to run your example using the fix in this PR!

@flaviuvadan flaviuvadan added semver:patch A change requiring a patch version bump type:bug A general bug labels May 26, 2023
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Merging #637 (7fe933f) into main (04a79dc) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #637   +/-   ##
=====================================
  Coverage   72.7%   72.7%           
=====================================
  Files         42      42           
  Lines       2937    2937           
  Branches     572     572           
=====================================
  Hits        2137    2137           
  Misses       648     648           
  Partials     152     152           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@flaviuvadan flaviuvadan changed the title Add special case handling of cron workflow status [#636] Add special case handling of cron workflow status May 26, 2023
scripts/service.py Outdated Show resolved Hide resolved
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
Copy link
Collaborator

@elliotgunton elliotgunton left a comment

Choose a reason for hiding this comment

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

LGTM

@elliotgunton
Copy link
Collaborator

Seems I messed up the DCO check, sorry 😓 github UI wouldn't let me change the email to sign off 🙄

Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
@flaviuvadan flaviuvadan merged commit 02690fe into main May 26, 2023
@flaviuvadan flaviuvadan deleted the fv/fix-cron-wf-return branch May 26, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CronWorkflow complains about missing CronWorkflowStatus attributes
2 participants