Created
June 4, 2020 14:00
-
-
Save rohit-saharan/1f5398254f619271ae7c1f39834666d0 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
import tasks | |
from time import sleep | |
print("add 3+5") | |
ret = tasks.add.delay(3,5) | |
print("Task ID:") | |
print(ret) | |
sleep(10) #give SQS and your worker time enough to execute, so that you can check status on next line | |
print(ret.status) #this should say SUCCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment