Kayvan Shah
05/21/2022, 4:57 PM$ prefect deployment inspect 'hello-world/hello-world-daily'
{
'id': '710145d4-a5cb-4e58-a887-568e4df9da88',
'created': '2022-04-25T20:23:42.311269+00:00',
'updated': '2022-04-25T20:23:42.309339+00:00',
'name': 'hello-world-daily',
'flow_id': '80768746-cc02-4d25-a01c-4e4a92797142',
'flow_data': {
'encoding': 'blockstorage',
'blob': '{"data": "\\"f8e7f81f24512625235fe5814f1281ae\\"", "block_id":
"c204821d-a44f-4b9e-aec3-fcf24619d22f"}'
},
'schedule': {
'interval': 86400.0,
'timezone': None,
'anchor_date': '2020-01-01T00:00:00+00:00'
},
'is_schedule_active': True,
'parameters': {},
'tags': ['earth'],
'flow_runner': {'type': 'universal', 'config': {'env': {}}}
}
Is there any extensive example available to write the complete config for a flow??Anna Geller
05/21/2022, 5:06 PMprefect deployment create your_file.yml
name: hello-world-daily
flow_location: ./path/to/flow.py
flow_name: hello-world
tags:
- foo
- bar
parameters:
name: "Earth"
schedule:
interval: 3600
# specify an existing storage configuration by ID
DeploymentSpec(
flow=hello_storage,
name="storage id test",
flow_storage="8cc24b10-0a4e-4b71-acc6-0ed0b923b5c2",
tags=["storage","tutorial"],
)
Kayvan Shah
05/21/2022, 6:17 PM