Skip to content

Force job.retries to be an integer #279

@anthony-yip

Description

@anthony-yip

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions