Skip to content

Force job.retries to be an integer #279

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

Open
anthony-yip opened this issue Mar 21, 2025 · 0 comments
Open

Force job.retries to be an integer #279

anthony-yip opened this issue Mar 21, 2025 · 0 comments
Assignees

Comments

@anthony-yip
Copy link

Image

Currently, this code implies that job.retries can be None. However, currently there is no way for that to be the case, and in the code we're basically treating None like -1. I think it would be appropriate to remove this guard and use type-checking to ensure that job.retries is always an integer.

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

No branches or pull requests

1 participant