-
Notifications
You must be signed in to change notification settings - Fork 82
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
update the logic to skip a job #761
Conversation
Codecov ReportBase: 92.01% // Head: 92.02% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #761 +/- ##
=======================================
Coverage 92.01% 92.02%
=======================================
Files 33 33
Lines 2204 2206 +2
=======================================
+ Hits 2028 2030 +2
Misses 176 176
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
it's easier to list the reasons for which we want to run a job, instead of the reason to skip it
Instead of retrying for any non-successful response in the cache, we only retry if the error is in the list of "retry-able" errors. Also: refactor the logic and add complete tests
7a43f9d
to
f8e43f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool !
return False | ||
return dataset_git_revision is not None and cached_response["dataset_git_revision"] == dataset_git_revision |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also make sure to not emit jobs if this condition is met ? This could help making the queue less full of unnecessary jobs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sure, I'd planned to do it for #736. But I'm trying to do small PRs, I think it will work better now that we work as a team
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice !
Instead of retrying for any non-successful response in the cache, we
only retry if the error is in the list of "retry-able" errors. Also:
refactor the logic and add complete tests