Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created November 11, 2017 15:07
Show Gist options
  • Save edwardinubuntu/5e19baf702908772ffce642cbd3907b0 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/5e19baf702908772ffce642cbd3907b0 to your computer and use it in GitHub Desktop.
pool and process
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