[GH-ISSUE #1041] If there anyway to setup task pending timeout? #2520

Closed
opened 2026-03-15 20:46:09 +03:00 by kerem · 3 comments
Owner

Originally created by @gtsigner on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1041

I checked all codes but i didn't found this feat.
Also task.Timeout just for processing timeout not pending

Originally created by @gtsigner on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/hibiken/asynq/issues/1041 I checked all codes but i didn't found this feat. Also task.Timeout just for processing timeout not pending
kerem 2026-03-15 20:46:09 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nhymxu commented on GitHub (Apr 21, 2025):

Your request look like Celery expiration option https://docs.celeryq.dev/en/stable/userguide/calling.html#expiration

I want this too 🤔

<!-- gh-comment-id:2819113164 --> @nhymxu commented on GitHub (Apr 21, 2025): Your request look like Celery expiration option https://docs.celeryq.dev/en/stable/userguide/calling.html#expiration I want this too 🤔
Author
Owner

@kamikazechaser commented on GitHub (May 5, 2025):

The Deadline option is for this. If you use it with MaxRetry=1 then if a task has not been processed by time.Time, then it will expire.

<!-- gh-comment-id:2850518477 --> @kamikazechaser commented on GitHub (May 5, 2025): The Deadline option is for this. If you use it with MaxRetry=1 then if a task has not been processed by time.Time, then it will expire.
Author
Owner

@fukaldev commented on GitHub (Sep 24, 2025):

Does this option relative to process time or relative to enqueue time?

<!-- gh-comment-id:3327248217 --> @fukaldev commented on GitHub (Sep 24, 2025): Does this option relative to process time or relative to enqueue time?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2520
No description provided.