Created
February 28, 2017 12:43
-
-
Save tonywangcn/850899fb9dd9e7bb00302a52bf7aa62a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 .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