mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #459] [FEATURE REQUEST] Periodic Tasks support customize cron logger #1226
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#1226
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 @yxlimo on GitHub (May 10, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/459
Originally assigned to: @hibiken on GitHub.
i want to customize cron logger to get more info, but i can't do it with scheduler
maybe we can add an option for schedulerOpts like
or just use asynq logger wrapper, seems little strange, and it need to do many things to handle edge case.
WDYT?
@hibiken commented on GitHub (May 10, 2022):
@yxlimo Thank you for opening an issue!
What kind of logs do you need?
@yxlimo commented on GitHub (May 11, 2022):
thank you for reply,i need logs like this
@hibiken commented on GitHub (May 12, 2022):
You can do this within your
Handlercode. If it's shared between multiple task types, I'd recommend usingMiddlewareFuncto have that applied to multiple tasks. See this wiki page for examples.Currently, you can provide
SchedulerOpts.EnqueueErrorHandlerbut there's an open feature request to add callbacks to both before and after the enqueue event #456; And probably this feature will be available pretty soon@hibiken commented on GitHub (Jun 4, 2022):
Closing this since it can be achieved using pre and post enqueue callbacks added in #476