Avi
05/13/2024, 6:09 AMMarvin
05/13/2024, 6:09 AMpython
from prefect import flow, get_run_logger
@flow
def my_flow():
logger = get_run_logger()
<http://logger.info|logger.info>("Hello from ECS!")
if __name__ == "__main__":
my_flow()
After deploying the flow, you can monitor the worker's health via the Prefect UI.
For detailed information on setting up and deploying flows on different platforms such as ECS or ACI, you might want to look at the respective guides and the general documentation on deployment:
- ECS Work Pool Health Check
- Prefect ACI Deployment Guide
- Prefect Documentation on Observability
Keep in mind that monitoring flow health can be platform-specific, and you should configure your deployments, work pools, and monitoring according to the infrastructure you're using.