Gabe Villasana
11/20/2023, 6:36 PMA
which is run via run_deployment
, and that flow has a number of subflows also triggered via run_deployment
, will those subflows also be cancelled?alex
11/20/2023, 6:37 PMGabe Villasana
11/20/2023, 6:40 PMGabe Villasana
11/20/2023, 6:44 PMGabe Villasana
11/20/2023, 7:02 PMGabe Villasana
11/20/2023, 7:03 PMJack P
11/20/2023, 7:08 PMsubprocess
library
command = f"prefect flow-run cancel '{running_flow_id}'"
process = subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
output, error = process.communicate()
if output:
print(f"Output: {output.decode()}")
if error:
print(f"Error: {error.decode()}")
Jack P
11/20/2023, 7:08 PMGabe Villasana
11/20/2023, 7:11 PM