mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #158] [BUG] Enqueue shouldn't call schedule #47
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#47
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 @xuyang2 on GitHub (Jun 4, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/158
Originally assigned to: @hibiken on GitHub.
Describe the bug
When you call
client.Enqueue(task)it shouldn't be callingschedule()To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
just call
client.Enqueue(task)Expected behavior
When you call
client.Enqueue(task)it should callenqueue()Screenshots

Environment (please complete the following information):
asynqpackage:a38f628f3bAdditional context
https://play.golang.org/p/K41KEKdMIQg
I guess L235 can change a little to make it more reliable. eg.
github.com/hibiken/asynq@a38f628f3b/client.go (L235-L239)@hibiken commented on GitHub (Jun 4, 2020):
@xuyang2 thank you for opening this issue!
I'll look into this once I'm finished with my current feature work. But if someone wants to take this bug, please feel free to take this bug and open a PR 👍
@hibiken commented on GitHub (Jun 14, 2020):
@xuyang2 I had trouble reproducing this bug on my machine (the conditional always evaluated to
truefor me) so I couldn't add a test case to reproduce the bug.But it should be fixed by #171. Please reopen this issue if you continue to see the behavior. thanks!