mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #449] [BUG] Scheduler flooding log messages #2230
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#2230
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 @gustavosbarreto on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/449
Originally assigned to: @hibiken on GitHub.
Describe the bug
Scheduler starts flooding log messages when enqueuing a duplicated task.
The following log entry are displayed multiple times:
EDIT: Also it is not possible to set a nil logger because it is overridden by the default chatty logger:
To Reproduce
Expected behavior
From my point of view, in a distributed system (with multiple instances) a duplicated task error should not be considered an error or at least not automatically logged, leaving it up to whoever is using the library (providing a custom error handler).
Additional context
github.com/hibiken/asynq@9116c096ec/scheduler.go (L129)@hibiken commented on GitHub (May 10, 2022):
@gustavosbarreto Thank you for the feedback!
I see, since we do provide
EnqueueErrorHandler, we probably should probably lower the log-level (or potentially remove it entirely). I'll work on this one soon 👍