[IMP] run: background-load second database from template while run #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Before this commit:
Restoring a database template can be a long process depending on the database size. In upgrade/maintenance, it can be needed that we re-run the same database multiple times to test upgrade scripts. As such, we generally interupt the running odoo-bin process then launch again the commdand:
odev run <db> -t <db template>After this commit:
The idea is to use the time while we are testing on the running database to restore another database of the same template then "swap" them when the first one is interupted in order to be available to run as soon as possible.
This process goes on as long as odev itself is interupted with Ctrl+C
Compliance
docsdirectoryrequirements.txtfile, if any