mocobeta opened a new pull request, #41: URL: https://github.com/apache/lucene-jira-archive/pull/41
Close #36 `jira2github_import.py` processes Jira dump files one by one and does not call any HTTP APIs. It should be able to parallelize it with [multiprocessing](https://docs.python.org/3/library/multiprocessing.html). One problem is how to handle the log file. I implemented the "log listener" pattern following this cookbook. https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes Usage: ``` # use four worker processes. a log listener process is also started. python src/jira2github_import.py --min 9000 --max 9100 --num_workers=4 # all forked processes should be stopped by sending SIGINT to the main process (Ctrl-C on Linux) ``` If `--num_workers` option is committed, only one worker and listener processes are started. Note: I think this code is OS-agnostic, but I haven't used `multiprocessing` on Windows. There might be some pitfalls. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org