Skip to content
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

Support both sequential and parallel execution strategies for running synchronization #55

Merged
merged 35 commits into from
Mar 23, 2020

Conversation

kabirbaidhya
Copy link
Contributor

@kabirbaidhya kabirbaidhya commented Mar 20, 2020

Support sequential execution strategy with a configurable option

  • Add a new config option execution supporting two choices sequential and parallel - default is still parallel execution so no breaking change.
  • Update utilities and add tests:
    • Change promise.runSequentially to accept promisers instead of promises.
    • Extract the execution process to services/execution.ts service.
    • Add tests
  • This is an opt-in option for the user. If they want to run it in a sequential mode (one connection at a time), they'll need to add this to their config:
    execution: sequential
    

Preview

sequential
sequential-run

parallel
parallel-run

@codecov-io
Copy link

codecov-io commented Mar 21, 2020

Codecov Report

Merging #55 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #55   +/-   ##
=======================================
  Coverage   38.18%   38.18%           
=======================================
  Files          19       19           
  Lines         364      364           
  Branches       32       32           
=======================================
  Hits          139      139           
  Misses        223      223           
  Partials        2        2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a93ff8...4a93ff8. Read the comment docs.

@kabirbaidhya kabirbaidhya changed the title (WIP) Support sequential strategy for running synchronization Support both sequential and parallel execution strategies for running synchronization Mar 21, 2020
@kabirbaidhya kabirbaidhya marked this pull request as ready for review March 21, 2020 06:06
@kabirbaidhya kabirbaidhya self-assigned this Mar 21, 2020
src/constants.ts Outdated Show resolved Hide resolved
src/services/execution.ts Outdated Show resolved Hide resolved
@kabirbaidhya kabirbaidhya requested a review from mesaugat March 22, 2020 17:49
@mesaugat mesaugat merged commit 942e423 into master Mar 23, 2020
@mesaugat mesaugat deleted the sequential-run branch March 23, 2020 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants