Skip to content

Instantly share code, notes, and snippets.

@kotfic
Created February 21, 2017 19:13
Show Gist options
  • Save kotfic/7b651b425380aed002dbe4760a7474d6 to your computer and use it in GitHub Desktop.
Save kotfic/7b651b425380aed002dbe4760a7474d6 to your computer and use it in GitHub Desktop.
# [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