Skip to content

Instantly share code, notes, and snippets.

@tonywangcn
Created February 28, 2017 12:43
Show Gist options
  • Save tonywangcn/850899fb9dd9e7bb00302a52bf7aa62a to your computer and use it in GitHub Desktop.
Save tonywangcn/850899fb9dd9e7bb00302a52bf7aa62a to your computer and use it in GitHub Desktop.
from .tasks import longtime_add
import time
if __name__ == '__main__':
url = ['http://example1.com' , 'http://example2.com' , 'http://example3.com' , 'http://example4.com' , 'http://example5.com' , 'http://example6.com' , 'http://example7.com' , 'http://example8.com'] # change them to your ur list.
for i in url:
result = longtime_add.delay(i)
print 'Task result:',result.result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment