-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golang API for creating queue and jobs? #1
Comments
There is not at the moment. In the meantime, you can use redis-cli RPUSH resque:queue:YOURQUEUE '{"class":"YOURCLASS","args":[YOURARGS]}' conn.Send("RPUSH", fmt.Sprintf("resque:queue:%s", queue), YOURJSON) Do you have any ideas on how the enqueueing API should be designed? Maybe something like goworker.Enqueue(queue string, class string, args []interface{}) And goworker would automatically JSON-encode the args? |
I see, it uses redis from within. I dont use redis. Its quite different from what I assumed. Thanks anyways. |
I think this is the good API. I'm trying to implement it on my fork. Just having a design issue with the pool: it is passed to each worker and is inaccessible globally (not bad, of course). What do you think is the right way to access it in the goworker.Enqueue scope? |
+1. Enqueuing jobs would be awesome. |
+1 to enqueueing jobs |
Import name updates
Validate connections from pool when using Sentinel
I dont want to use cli or redis or ruby, just Golang. Is there a doc for just Golang implementation? Creating queues and jobs in Golang?
Thanks
The text was updated successfully, but these errors were encountered: