Skip to content

Conversation

wonder-sk
Copy link
Contributor

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.

@wonder-sk
Copy link
Contributor Author

wonder-sk commented Feb 17, 2020

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

@wonder-sk
Copy link
Contributor Author

Also updated example GUI source code to handle errors
https://gist.github.com/wonder-sk/e9d0da7d224283c9870728df5b3faa35

@wonder-sk wonder-sk requested a review from varmar05 February 19, 2020 13:19
@wonder-sk
Copy link
Contributor Author

@varmar05 the issue with progress bar should be fixed now

@varmar05
Copy link
Contributor

I think we can merge it (once we have plugin part ready) @wonder-sk @saberraz

@varmar05 varmar05 merged commit 4c40878 into master Mar 10, 2020
@wonder-sk wonder-sk deleted the async_rebased branch April 23, 2021 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants