-
Notifications
You must be signed in to change notification settings - Fork 9
Asynchronous download/push/pull #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The MerginProject object was moved verbatim to the new file without any changes to it.
https://gist.github.com/wonder-sk/3150e77d3ec0912d4c4e0c8242033aea has some very basic sample code for integration into GUI EDIT: see below for updated version of the script with error handling |
Also updated example GUI source code to handle errors |
@varmar05 the issue with progress bar should be fixed now |
I think we can merge it (once we have plugin part ready) @wonder-sk @saberraz |
This replaces PR #41
Adds support for asynchronous sync - i.e. to be able to start push/pull of a project, the download will run in a background thread and then when download is finished (it can be checked whether it has happened already), we do finalization of the job (which should not take long so it is in the main thread).
This should allow the GUI to 1. allow cancellation, 2. show progress.
The command line interface has been updated to have progress bar during download/push/pull and allows graceful cancellation.
The number of parallel request has been fixed to 4 so that we don't drain server resources too much. This could be modified later or made configurable. There is now a single code path unlike before with different code paths for parallel/non-parallel approach.
By the way, MerginProject object has been moved to a new file without any changes to the code.