Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

request.retries comes in as null in the celery worker #124

Description

@edu2004eu

I'm trying to retry tasks if they fail, using a back-off mechanism:

self.retry(exc=e, countdown=int(random.uniform(2, 4) ** self.request.retries))

When sending tasks from Python's celery, everything works well. Using celery-php to send tasks throws an error when reaching the code above, saying that self.request.retries is None.

Python's celery automatically sends request.retries as 0 on the first schedule of the task.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions