mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #450] [FEATURE REQUEST] choose EVAL for func (r *RDB) runScript #2232
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#2232
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 @chenlujjj on GitHub (May 6, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/450
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I am using this awesome lib in my work, however when I released my application to production, I found that the evalsha is forbidden in my company.
Describe the solution you'd like
Maybe we can choose to use
evalorevalshainfunc (r *RDB) runScriptandfunc (r *RDB) runScriptWithErrorCode.It can be a bool parameter in
NewClientfunction or something.Describe alternatives you've considered
Additional context
@chenlujjj commented on GitHub (May 6, 2022):
It turns out that some script calls
func (r *RDB) runScriptorfunc (r *RDB) runScriptWithErrorCodementioned above, others callfunc (s *Script) Rundirectly, such asres, err := dequeueCmd.Run(context.Background(), r.client, keys, argv...).Result()inrdb.go.@chenlujjj commented on GitHub (May 6, 2022):
So there woule be more work than just modifying
func (r *RDB) runScriptandfunc (r *RDB) runScriptWithErrorCode@chenlujjj commented on GitHub (May 6, 2022):
I have fored a repo: https://github.com/chenlujjj/asynq/tree/eval-script, and replaced all
RuntoEval. It's just a quick and dirty update for my usage and should not be merged into main branch.@hibiken commented on GitHub (May 10, 2022):
@chenlujjj thank you for opening an issue!
Do you think you can keep using your fork?
@chenlujjj commented on GitHub (May 10, 2022):
yes, it works now.