https://prefect.io logo
a

Ali Mir

07/06/2023, 3:37 PM
I have a few questions: • Does the flow need to be deployed before it can be run using UI? Without deploying we can only run the flow thru terminal/python? (basically where is the green button for running a flow on the UI) • I am receiving the emails for the flow being completed as desired, but I did not specifically import the block information into my code (referring to:
from prefect.blocks.system import EMAILStoEMAIL
). When do we want to import blocks and when it's not necessary? • Can an automation step do multiple things? for example, trigger a block which is responsible for emailing and another one that is responsible for sending a slack message, or do they have to be 2 different automations?
j

Jeff Hale

07/06/2023, 3:45 PM
1. Yes. We’ll get into deployments after the break. 2. For automations, you don’t need to use the block in code. The prefect-email package has blocks you can use if you want to send an email in a flow. We will talk about blocks in integrations a bit later, too. 3. Yes, can do in one automation, I believe. Give it a try 🙂
a

Ali Mir

07/06/2023, 3:46 PM
Thank you Jeff!
👍 1