[GH-ISSUE #387] How to implement delayed task queue #2195

Closed
opened 2026-03-15 19:37:50 +03:00 by kerem · 2 comments
Owner

Originally created by @dmskys on GitHub (Jan 26, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/387

Originally assigned to: @hibiken on GitHub.

I want the task to execute in seconds later. How to implement a delayed task queue?

Originally created by @dmskys on GitHub (Jan 26, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/387 Originally assigned to: @hibiken on GitHub. I want the task to execute in seconds later. How to implement a delayed task queue?
kerem 2026-03-15 19:37:50 +03:00
Author
Owner

@hibiken commented on GitHub (Jan 26, 2022):

Does this work for you?

info, err := client.Enqueue(task, asynq.ProcessIn(x * time.Second))
<!-- gh-comment-id:1022594379 --> @hibiken commented on GitHub (Jan 26, 2022): Does this work for you? ```go info, err := client.Enqueue(task, asynq.ProcessIn(x * time.Second)) ```
Author
Owner

@dmskys commented on GitHub (Jan 27, 2022):

yes thanks

<!-- gh-comment-id:1022770972 --> @dmskys commented on GitHub (Jan 27, 2022): yes thanks
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#2195
No description provided.