lialzm
01/09/2023, 8:01 AMChristopher Boyd
01/10/2023, 2:37 PMprefect deployment build ./healthcheck.py:healthcheck -n <deployment name>
Step 2 is applying it (can be done with --apply too): prefect deployment apply <output file from above>
lialzm
01/10/2023, 3:29 PMdeployment = Deployment.build_from_flow(
flow=download,
name="test",
storage=ali,
schedule=(CronSchedule(cron="0 16 * * *"))
)
deployment.apply()
Christopher Boyd
01/10/2023, 3:30 PMlialzm
01/10/2023, 3:35 PMChristopher Boyd
01/10/2023, 3:36 PMlialzm
01/10/2023, 3:40 PMdeployment = Deployment.build_from_flow(
flow=download,
name="test",
storage=ali,
schedule=(CronSchedule(cron="0 16 * * *"))
)
deployment.apply()
try command python test.py
to check flow
setp2: use docker to deploy
WORKDIR /code
COPY . /code
CMD python test.py && prefect agent start --work-queue "default"
setp3: run flow by prefect cloud
have a error like flow could not in /homeChristopher Boyd
01/10/2023, 3:45 PMlialzm
01/10/2023, 3:52 PM