careful-dress-39510
01/12/2022, 12:11 AMdef determine_flow_run_type(self):
"""
This step determines if this is the first run of the flow, or if this is an update to the flow.
"""
if self.is_first_run:
self.next(self.get_data)
else:
self.next(self.load_todays_first_run_data)
getting the error:
Validating your flow...
Validity checker found an issue on line 85:
Step determine_flow_run_type is missing a self.next() transition to the next step. Add a self.next() as the last line in the function.
straight-shampoo-11124
01/12/2022, 12:41 AMif
condition in a step to choose between different modes
• Have an if
condition to make a step a no-op e.g. based on self.is_first_run
• Have a foreach where you alter the number of tasks executed based on some conditionalcareful-dress-39510
01/12/2022, 12:43 AMvictorious-lawyer-58417
01/12/2022, 12:49 AMif
condition like in your example. There would need to be some mechanism to communicate the choice back to the orchestratorcareful-dress-39510
01/12/2022, 1:51 AM@schedule
decorators to a flow?straight-shampoo-11124
01/12/2022, 1:58 AMcareful-dress-39510
01/12/2022, 2:02 AMmillions-window-53188
04/07/2022, 3:36 PMstraight-shampoo-11124
04/07/2022, 3:37 PMmillions-window-53188
04/07/2022, 3:41 PMstraight-shampoo-11124
04/07/2022, 3:43 PMmillions-window-53188
04/07/2022, 3:46 PMstraight-shampoo-11124
04/07/2022, 3:53 PMstraight-shampoo-11124
04/07/2022, 3:59 PMmillions-window-53188
04/07/2022, 4:09 PMstraight-shampoo-11124
04/07/2022, 4:15 PMuser
10/14/2022, 9:57 PMuser
10/14/2022, 9:59 PMstraight-shampoo-11124
10/14/2022, 10:31 PMuser
10/14/2022, 10:43 PMstraight-shampoo-11124
10/14/2022, 10:59 PMuser
10/14/2022, 11:22 PMuser
10/14/2022, 11:28 PMvictorious-lawyer-58417
10/14/2022, 11:30 PMstart
step
self.x = 1
and then use @skip(check='x', next='end')
user
10/14/2022, 11:33 PMbulky-portugal-95315
06/05/2023, 2:43 PMend
and ran into an error. Is there a better way of skipping middle steps?
If I have 20 steps in my flow, but based on a parameter I want to skip steps 3-8, how would I be able to do that?
Internal error:
Based on static analysis of the code, step middle was expected to transition to step(s) middle2. However, when the code was executed, self.next() was called with end. Make sure there is only one unconditional self.next() call in the end of your step.
eager-portugal-23565
12/18/2023, 7:16 PM