Skip to content

[BUG] Retriability of timeouts appears inconsistent #5368

Open
@fg91

Description

@fg91

Describe the bug

Let's consider this task:

@task(timeout=timedelta(seconds=120), retries=10)
def foo():
    from time import sleep
    sleep(3600)

I'm seeing two attempts:

Screenshot 2024-05-15 at 11 45 33 Screenshot 2024-05-15 at 11 45 40
  • The first timeout must have been counted as retriable as we see a second attempt.
  • The second timeout must have been counted as non-retriable as we don't see further attempts even though we configured retries=10

Expected behavior

I would have expected either no retry or 10 retries.

Additional context to reproduce

No response

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions