Created
June 12, 2020 20:22
-
-
Save shemul/4781afd7dcaf708bdb0d07aa5c299afc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package worker | |
import ( | |
"github.com/RichardKnop/machinery/v1" | |
) | |
func StartWorker(taskserver *machinery.Server) error { | |
worker := taskserver.NewWorker("machinery_worker", 10) | |
if err := worker.Launch(); err != nil { | |
return err | |
} | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment