Skip to content
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

Singleton killing worker when trying to retry a task #55

Open
jsevillaamd opened this issue Oct 16, 2023 · 0 comments
Open

Singleton killing worker when trying to retry a task #55

jsevillaamd opened this issue Oct 16, 2023 · 0 comments

Comments

@jsevillaamd
Copy link

jsevillaamd commented Oct 16, 2023

Singleton killing worker when trying to retry.

  • celery-singleton==0.3.1
  • celery==5.2.2
@shared_task(base=base_singleton, raise_on_duplicate=False, lock_expiry=21300, autoretry_for=(Exception,), max_retries=2)

If a task raises an exception, the worker is killed. This error appears en logs.
celery.exceptions.Reject: (DuplicateTaskError('Attempted to queue a duplicate of task ID 2deba45b-f683-4f7a-bef1-f1df22b32895'), False)
[2023-10-11 14:15:05,872: CRITICAL/MainProcess] Unrecoverable error: TypeError("init() missing 1 required positional argument: 'task_id'")

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

No branches or pull requests

1 participant