Last active
August 31, 2022 16:10
-
-
Save discdiver/fedede5f28f7149a878dd8851d0bc978 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from demo import pipeline2 | |
from prefect.deployments import Deployment | |
from prefect.filesystems import S3 | |
from prefect.orion.schemas.schedules import IntervalSchedule | |
deployment2 = Deployment.build_from_flow( | |
flow=pipeline2, | |
name="Second Python Deployment Example", | |
schedule=(IntervalSchedule(interval=60)), | |
tags=["extract"], | |
storage=S3.load("dev"), | |
) | |
if __name__ == "__main__": | |
deployment2.apply() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment