Skip to content

Instantly share code, notes, and snippets.

@channeng
Created October 22, 2017 16:18
Show Gist options
  • Select an option

  • Save channeng/021dc0dd3af32567a912eceab5845678 to your computer and use it in GitHub Desktop.

Select an option

Save channeng/021dc0dd3af32567a912eceab5845678 to your computer and use it in GitHub Desktop.
Celery Flask setup -- example task
import celery
@celery.task()
def print_hello():
logger = print_hello.get_logger()
logger.info("Hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment