-
-
Save AnderRV/f741355b768c7f4faee9ed5c4cd15f55 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
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