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

Sort repeatables scripts with dependencies #287

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

wonolivier
Copy link

Enables by default a new but it is possible to specify dependencies for each repeatable script file.

A slight refactor to the parsing of evolve file options has been necessary to permit options on several lines :
-- evolve-tx-off
-- evolve-repeatable-deps=XXX

Legacy behaviour is still supported :
-- evolve-tx-off evolve-repeatable-deps=XXX

The "evolve-repeatable-deps" option must be declared with an equal sign then the file dependencies, separated by pipes :
-- evolve-repeatable-deps=PROC_A|PROC_B|PROC_C

Spaces can be used to add spacing :
-- evolve-repeatable-deps = PROC_A | PROC_B | PROC_C

Dependencies are repeatable script descriptions with underscores (_) instead of spaces.

This modification has been made to make RetryRepeatableMigrationsUntilNoErrorNew obsolete : if dependencies are correctly managed, script order should always be right.

Circular dependencies will make the migration fail before migrating the repeatables.

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.

None yet

2 participants