Skip to content

Instantly share code, notes, and snippets.

@AnderRV

AnderRV/tasks.py Secret

Created August 20, 2021 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnderRV/f741355b768c7f4faee9ed5c4cd15f55 to your computer and use it in GitHub Desktop.
Save AnderRV/f741355b768c7f4faee9ed5c4cd15f55 to your computer and use it in GitHub Desktop.
from celery import Celery
app = Celery('tasks', broker_url='redis://127.0.0.1:6379/1')
@app.task
def demo(str):
print(f'Str: {str}')
demo('ZenRows') # Str: ZenRows
demo.delay('ZenRows') # ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment