Created
November 11, 2017 15:07
-
-
Save edwardinubuntu/5e19baf702908772ffce642cbd3907b0 to your computer and use it in GitHub Desktop.
pool and process
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
max_windows = browser_setting['max_windows'] | |
logging.info('max_windows settings: ' + str(max_windows)) | |
# pool = Pool(processes=len(event_list)) | |
for event in event_list[:max_windows]: | |
logging.debug('Event before submit, name: ' + event['text']) | |
# pool.apply_async(func=parse_event_sale_info, args=(event,)) | |
p = Process(target=parse_event_sale_info, args=(event,)) | |
p.start() | |
p.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment