Created
February 21, 2017 19:13
-
-
Save kotfic/7b651b425380aed002dbe4760a7474d6 to your computer and use it in GitHub Desktop.
This file contains 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
# [Celery best practice] | |
from myapp import foo | |
foo.delay(args, kwargs) | |
# [Correct way to do in Celery what GW tries to do now] | |
from myapp import app | |
app.send_task(“myapp.foo”, args, kwargs) | |
# [Current Girder] | |
from celery import Celery | |
app = Celery(<bunch of static configuration that may or may not match GW>) | |
app.send_task(“myapp.foo”, args, kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment