[GH-ISSUE #553] [QUESTION] Can i persist completed job information? #2289

Closed
opened 2026-03-15 19:57:52 +03:00 by kerem · 3 comments
Owner

Originally created by @danvixent on GitHub (Sep 29, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/553

Can data about jobs that have been completed be persisted in asynq?

Originally created by @danvixent on GitHub (Sep 29, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/553 Can data about jobs that have been completed be persisted in asynq?
kerem closed this issue 2026-03-15 19:57:57 +03:00
Author
Owner

@chromosomaly commented on GitHub (Sep 30, 2022):

https://github.com/hibiken/asynq/wiki/Task-Retention-and-Result

Use asynq.Retention(1*time.Minute) (or any other time.Duration)

<!-- gh-comment-id:1263451314 --> @chromosomaly commented on GitHub (Sep 30, 2022): https://github.com/hibiken/asynq/wiki/Task-Retention-and-Result Use `asynq.Retention(1*time.Minute)` (or any other time.Duration)
Author
Owner

@hibiken commented on GitHub (Oct 1, 2022):

The Retention option keeps the job in Redis for the specified duration.
If you want to persist your job data durably and/or permanently, you could write a middleware to persist jobs when it's processed successfully.
Thanks @danvixent for the question and thanks @chromosomaly for answering!

<!-- gh-comment-id:1264460788 --> @hibiken commented on GitHub (Oct 1, 2022): The `Retention` option keeps the job in Redis for the specified duration. If you want to persist your job data durably and/or permanently, you could write a middleware to persist jobs when it's processed successfully. Thanks @danvixent for the question and thanks @chromosomaly for answering!
Author
Owner

@danvixent commented on GitHub (Oct 4, 2022):

Thanks y'all @chromosomaly @hibiken

<!-- gh-comment-id:1267729064 --> @danvixent commented on GitHub (Oct 4, 2022): Thanks y'all @chromosomaly @hibiken
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#2289
No description provided.