MerginMaps / work-packages

Mergin Maps Work Packages: manage field surveys for multiple teams
MIT License
7 stars 4 forks source link

let script continue if a wp is updated during a sync cycle #47

Closed HugoP27 closed 1 year ago

HugoP27 commented 1 year ago

Problem: When there are multiple WP's in the mergin-work-packages script the script loops through each one in yml sequence to check for changes and merge them to the main project. If during this process someone sync's and a WP is changed, the whole loop is interrupted and starts again.

Real world example: We have 140 WP's so if there are no interruptions the script runs through all in more or less 30 minutes. What happens however is that multiple users sync during a cycle and the script can take up to 2 hours to complete as it starts over with every sync.

Solution: Shelf changes and sync them during the next run cycle, this way the script continues running and users can see their changes online much quicker.

We are open to funding part of the dev if there is a fix available

wonder-sk commented 1 year ago

Indeed something like that would be useful, addressing two issues:

wonder-sk commented 1 year ago

Please try with 1.1.0 release - with #48 and #49 things should be both faster, and project should be locked most of the time...

Hackster93 commented 1 year ago

New issue related to the dev in #48 and #49.

https://github.com/MerginMaps/mergin-work-packages/issues/53 (The tool fails with many work package projects)