Matt Alhonte
06/13/2023, 6:48 PM18:44:38.783 | INFO | botocore.credentials - Found credentials in environment variables.
and eventually times out. I'm running the py
file that has the Flow as a script, and have this at the end:
if __name__ == "__main__":
for memory in [15360, 30720, 63398, 126899]:
base_args = make_deployment_args(flow_name1, memory, user="matt")
storage1 = S3Bucket.load(<name>)
deployment1 = Deployment.build_from_flow(
flow=nb_flow, storage=storage1, **base_args
)
memory2 = 14360
base_args2 = make_deployment_args(flow_name2, memory2, user="matt")
storage2 = S3Bucket.load(<name>)
deployment1 = Deployment.build_from_flow(
flow=nb_subflows, storage=storage2, **base_args2
)
It works fine when I run it interactively, but not in CI/CD.Marvin
06/13/2023, 6:49 PMprefect-aws
if you're using AWS services. You can include this in your Dockerfile:
docker
RUN pip install prefect-aws
2. Make sure your Prefect agent has the required packages available in its environment. One user resolved a similar issue by starting their Google Cloud VM from their worker Docker image, which had all the necessary Python modules. They used a startup command like this:
bash
prefect cloud login -k <key> -w "<username>/<workspace>"
prefect agent start -p <pool>
3. Double-check your CI/CD environment variables and ensure they are correctly set.
While these suggestions may not be an exact match for your issue, they could provide some insight into potential solutions. And remember, CI/CD pipelines are like a box of chocolates; you never know what you're going to get.Emil Christensen
06/15/2023, 5:25 PMMarvin
06/15/2023, 5:26 PMPREFECT_AGENT_QUERY_INTERVAL
configuration value source.
3. Multiple agents polling from the same work queue: Check if there is more than one agent polling for runs from the same work queue, as this can lead to pending runs that can't be deployed efficiently source.
4. Task timeouts: There are some reported issues on GitHub related to task timeouts causing unexpected behavior, such as this issue where task timeouts break retry signals and the task is treated as successful. You might want to check if your flow has any similar issues.
Remember, timeouts are just nature's way of reminding us that patience is a virtue. Good luck!Matt Alhonte
06/16/2023, 9:43 PMMatt Alhonte
06/16/2023, 9:45 PMEmil Christensen
06/20/2023, 1:35 PMNate
06/20/2023, 1:38 PMEmil Christensen
06/20/2023, 1:41 PM