Prefect on_completion questions

I’m playing around with the on_completion hooks introduced here and have a couple of questions:

  1. Can we trigger other flows from these on_completion hooks? I’ve tried wrapping the called function and end up with an asyncio.cancelled error.
  2. Can we log prints from inside the on_completion functions? My understanding is that the flow ends and the agent stops running. So technically prefect flow would not be running anymore. Is this correct and if so, is there a workaround?
1 Like