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

add abort step and refactored execute definition to be the same for all flow steps #592

Merged
merged 5 commits into from
Sep 14, 2022

Conversation

keevan
Copy link
Contributor

@keevan keevan commented Sep 13, 2022

Resolves #591

Should improve and help with the effort in #473

@keevan keevan changed the title fix: change abort_if to abort, add comments and simplify add abort step and refactored execute definition to be the same for all flow steps Sep 13, 2022
@keevan keevan force-pushed the 591-abort-flow-step branch 2 times, most recently from c92e8c3 to 26de907 Compare September 14, 2022 01:39
- should trigger an abort on the whole dataflow if it was ever reached and processed.
- add handling for abort, to finalise the run and persist the times
- add abort step for "connectors", which triggers an abort if a
  condition is true

Note that this might be redundant if an "if" condition was made
availalble to most steps (connectors, non logic flows), but might be
harder to follow visually and when there are skips.
lang/en/tool_dataflows.php Outdated Show resolved Hide resolved
- abort step, condition not required (defaults to true)
- abort step, simplify conditions when to abort
- add more logging to the abort step
Issues fixed:
      1 - Comma required after last value in array declaration
      3 - Expected 0 blank lines after function
      1 - Multi-line array contains a single value
@jaypha jaypha merged commit db42f3d into MOODLE_35_STABLE Sep 14, 2022
@jaypha jaypha deleted the 591-abort-flow-step branch September 14, 2022 05:29
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.

Add a step to abort the dataflow completely
3 participants