mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #553] [QUESTION] Can i persist completed job information? #264
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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)@hibiken commented on GitHub (Oct 1, 2022):
The
Retentionoption 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!
@danvixent commented on GitHub (Oct 4, 2022):
Thanks y'all @chromosomaly @hibiken