Hi community :slightly_smiling_face: I improved th...
# prefect-contributors
z
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
we use it (like this) but would be happy to update for a more useful return type
Copy code
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()