Rahul Kadam
10/31/2022, 3:19 PMRyan Peden
10/31/2022, 3:20 PMOscar Björhn
10/31/2022, 3:21 PMRahul Kadam
10/31/2022, 3:24 PMRyan Peden
10/31/2022, 3:58 PMRahul Kadam
10/31/2022, 4:14 PMRahul Kadam
11/01/2022, 2:00 PMRyan Peden
11/01/2022, 2:04 PMRahul Kadam
11/04/2022, 4:47 PMModuleNotFoundError: No module named 'psycopg2'
the dependency packages should be already there in docker images isnt it ?Ryan Peden
11/04/2022, 4:53 PMasyncpg
instead of psycopg2
, so psycopg2
isn't included in the image.
If you're using Postgres instead of SQLite for Orion, make sure your connection string starts with postgres-asyncpg
and not postgres-psycopg2
Rahul Kadam
11/04/2022, 4:55 PMRahul Kadam
11/04/2022, 5:45 PMRyan Peden
11/04/2022, 5:47 PMRahul Kadam
11/04/2022, 5:48 PMRahul Kadam
11/16/2022, 2:20 PMprefect agent start -q ${QUEUE_NAME} \
--run-task-kwargs /root/.prefect/kwargs.json \
--task-definition /root/.prefect/task_definition_${AWS_ENV}.yaml \
--cluster ${ECS_CLUSTER_NAME} \
--task-role-arn ${FLOW_TASK_ROLE} \
--execution-role-arn ${FLOW_EXECUTION_ROLE} \
--task-definition-add-uuid true
It is failing with below error
TypeError: loader must define exec_module()
even in local env.
The variables and files mentioned in command are there.. this is how we were running it in previous version, minus the -q queue name
.
Any idea why it could be happening ?Ryan Peden
11/16/2022, 2:30 PMprefect agent start
doesn't know what to do with the ECS-specific flags.
Instead, you would need to set values in an ECSTask infrastructure block, which you can then use when creating deployments.Rahul Kadam
11/16/2022, 2:32 PMRahul Kadam
11/16/2022, 2:39 PM