https://prefect.io logo
Title
z

Zanie

04/07/2021, 3:10 PM
Hi community 🙂 I improved the return value of the
StartFlowRun
Task at https://github.com/PrefectHQ/prefect/pull/4245 and have some minor concerns about it being a breaking change. I expect that nobody was using the return value because it was undocumented but I'm curious if anyone here was? Let me know what you think!
👏 2
b

Brett Naul

04/07/2021, 3:29 PM
we use it (like this) but would be happy to update for a more useful return type
try:
    StartFlowRun(...)
except prefect.engine.signals.PrefectStateSignal as signal:
                # Parse out flow run from signal `STATE("...finished in state ..."`)
                # (see StartFlowRun.run)
    flow_run_id, *_ = signal.args[0].split()