Deepanshu Aggarwal
10/04/2023, 12:32 PM# configuration for deploying your flows. We recommend committing this file to source
# control along with your flow code.
# Generic metadata about this project
name: activities-split-sync
prefect-version: 2.13.3
# build section allows you to manage and build docker images
build: null
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_aws.deployments.steps.push_to_s3:
id: push_code
requires: prefect-aws>=0.3.4
bucket: prod-prefect-s3-block
folder: prefect
credentials: "{{ prefect.blocks.aws-credentials.s3cred }}"
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect_aws.deployments.steps.pull_from_s3:
id: pull_code
requires: prefect-aws>=0.3.4
bucket: '{{ push_code.bucket }}'
folder: '{{ push_code.folder }}'
credentials: "{{ prefect.blocks.aws-credentials.s3cred }}"
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: activities-mode-split-sync-flow
version: '1.0'
tags: [
activities_mode_split_sync_flow
]
description: null
schedule: {}
flow_name: activities-mode-split-sync-flow
entrypoint: flows/process_sso_integrations_flows/activities_mode_split_sync_flow.py:activities_mode_split_sync_flow
parameters: {}
work_pool:
name: sso
work_queue_name: activities-sso-queue
job_variables: {}
Bianca Hoch
10/04/2023, 6:17 PMBianca Hoch
10/04/2023, 6:17 PMpush:
- prefect_aws.deployments.steps.push_to_s3:
id: push_code
requires: prefect-aws>=0.3.4
bucket: bianca-bucket
folder: bucket-folder
credentials: '{{ prefect.blocks.aws-credentials.bianca-eks-creds }}'
Bianca Hoch
10/04/2023, 6:18 PMDeepanshu Aggarwal
10/04/2023, 6:27 PM'prefect.yaml' did not conform to deployment spec: AttributeError("'NoneType' object has no attribute 'name'")
Bianca Hoch
10/04/2023, 7:09 PMDeepanshu Aggarwal
10/04/2023, 7:39 PMDeepanshu Aggarwal
10/04/2023, 8:04 PMBianca Hoch
10/04/2023, 8:10 PMprefect deployment apply prefect.yamlAh, I think that may be the problem
Bianca Hoch
10/04/2023, 8:10 PMprefect deploy --name activities-mode-split-sync-flow
Deepanshu Aggarwal
10/04/2023, 8:11 PMBianca Hoch
10/04/2023, 8:16 PMBianca Hoch
10/04/2023, 8:17 PMprefect deploy
is covered a bit more in depth hereDeepanshu Aggarwal
10/04/2023, 9:25 PMFlow could not be retrieved from deployment.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 260, in retrieve_flow_then_begin_flow_run
flow = await load_flow_from_flow_run(flow_run, client=client)
File "/usr/local/lib/python3.9/site-packages/prefect/client/utilities.py", line 47, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prefect/deployments.py", line 163, in load_flow_from_flow_run
basepath = deployment.path or Path(deployment.manifest_path).parent
File "/usr/local/lib/python3.9/pathlib.py", line 1082, in __new__
self = cls._from_parts(args, init=False)
File "/usr/local/lib/python3.9/pathlib.py", line 707, in _from_parts
drv, root, parts = self._parse_args(args)
File "/usr/local/lib/python3.9/pathlib.py", line 691, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Deepanshu Aggarwal
10/04/2023, 9:25 PMDeepanshu Aggarwal
10/04/2023, 9:26 PMBianca Hoch
10/13/2023, 2:10 PMBianca Hoch
10/13/2023, 2:10 PMBianca Hoch
10/13/2023, 2:11 PMDeepanshu Aggarwal
10/13/2023, 2:18 PMBianca Hoch
10/13/2023, 2:19 PM