Skip to content

Instantly share code, notes, and snippets.

@discdiver
Last active August 31, 2022 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discdiver/fedede5f28f7149a878dd8851d0bc978 to your computer and use it in GitHub Desktop.
Save discdiver/fedede5f28f7149a878dd8851d0bc978 to your computer and use it in GitHub Desktop.
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