Giacomo Chiarella
07/02/2024, 12:48 PMd = Deployment.build_from_flow(flow, deployment_name, skip_upload=True)
d.work_queue_name = work_queue_name
d.infrastructure = Process()
d.storage = S3.load(storage)
if schedule:
d.schedules = [DeploymentScheduleCreate(schedule=CronSchedule(cron=schedule, timezone="UTC"), active=True)]
d.parameters = parameters
d.tags = tags
d.description = flow.description
d.path = path
d.apply()
d.upload_to_storage(ignore_file=None)
The python code in prefect package suggests flow.deploy and Marvin suggests flow.serve. The problem is that none of these 2 methods has the parameters like path, storage, infrastructure. Can anyone put some light on this?Giacomo Chiarella
07/02/2024, 12:52 PM