Andy Yeung
01/08/2023, 6:15 AMYaron Levi
01/08/2023, 1:00 PMTadej Svetina
01/08/2023, 8:11 PMTadej Svetina
01/08/2023, 9:28 PMasyncio.sleep
to wait between querying the API. Running of this task occupies 100% of the CPU - how can I fix this?Ben Muller
01/08/2023, 10:50 PMprefect deployment apply my-deployment.yml, mydeployment2.yml --upload
Error in 🧵Dylan Lim
01/09/2023, 1:44 AMDylan Lim
01/09/2023, 1:53 AMPostgresFetch
, transforms it and loads it onto our warehouse using PostgresExecuteMany
. The Flow gets stuck at the stage where it reads from the external db and when I cancel it via the UI, it also cancels indefinitely (I have flows that have been ‘cancelling’ since a few days ago). Can anyone point me towards any suggested areas to investigate? For context, I checked if it’s a volume issue but the number of rows historically retrieved are roughly the same amount, and other Flows that query from the same external db are not running into this issue.lialzm
01/09/2023, 8:01 AMKelvin DeCosta
01/09/2023, 9:27 AMDanilo Drobac
01/09/2023, 10:39 AMMax Rostron
01/09/2023, 11:01 AMStefan
01/09/2023, 12:53 PMBianca Hoch
01/09/2023, 6:07 PM<! here>
(without the space).Matthew Scanlon
01/09/2023, 2:40 PMSubmission failed. PrefectHTTPStatusError: Server error '500 Internal Server Error' for url '<https://api.prefect.cloud/api/accounts/XXXXXXXX/workspaces/XXXXXXXXX/deployments/XXXXXXXXX>' Response: {'exception_message': 'Internal Server Error'} For more information check: <https://httpstatuses.com/500>
Igor Morgunov
01/09/2023, 2:55 PMcluster_config_block = KubernetesClusterConfig.load("data-engineering")
k8s = KubernetesJob(
cluster_config=cluster_config_block
)
deployment = Deployment.build_from_flow(
flow=test,
name="test",
version="0.0.1",
tags={"from-python-object"},
parameters={"name": "test-run"},
infra_overrides={"env": {"PREFECT_LOGGING_LEVEL": "DEBUG"}},
work_queue_name="test",
infrastructure=k8s
)
if __name__ == "__main__":
result = deployment.apply()
print(result)
I don't see where/how to pass the AWS credentials to deployment, without which ofc the flow run results in 401 Unauthorized
responseRasmus Lindqvist
01/09/2023, 3:22 PMScott Chamberlain
01/09/2023, 6:50 PMtry ... catch
with Prefect 2 tasks, if it’s possible that is? I’d like to be able to skip a failed task and let downstream tasks proceed but it seems like a Failed task kills the entire flow. Or maybe I’m wrong?Jean-Michel Provencher
01/09/2023, 7:13 PMalex
01/09/2023, 9:00 PMNace Plesko
01/10/2023, 12:36 AMenv={"PREFECT__CLOUD__HEARTBEAT_MODE": "thread"}
to my run config. I added that but the tasks are still being stuck. Is there anything else I need to configure in order to activate zombie killer?iKeepo w
01/10/2023, 3:57 AMBryan Whiting
01/10/2023, 4:38 AMTibs
01/10/2023, 7:26 AMdeployment build deployment_utils/maintenance.py:maintenance -n maintenance/maintenance -sb s3-bucket/<my_s3_bucket_block_name> -a
f"Successfully uploaded {file_count} files to {deployment.location}",
if not self.storage.basepath.endswith("/")
AttributeError: 'NoneType' object has no attribute 'endswith'
Files are uploaded to S3, but this error is raised.
Anyone know what could be the issue?Rasmus Lindqvist
01/10/2023, 9:43 AMStephen Herron
01/10/2023, 9:47 AMSnowflakeCredentials
from a SnowflakeConnector
?karthik
01/10/2023, 9:54 AMMark Nuttall-Smith
01/10/2023, 10:38 AMDockerRegistry
block working with AWS ECR, but it seems the password expires after some hours. Another thread suggests that an ECR block is being worked on, but this PR is blocked for a variety of reasons.
In the same thread @Anna Geller suggests using ECSTask
as the run-infrastructure. Is that still the only workaround for using ECR? I'd prefer to continue using DockerContainer
if possible, as I'm not familiar with ECS.Danilo Drobac
01/10/2023, 11:23 AMFROM prefecthq/prefect:2.7.7-python3.8
RUN ["pip", "install", "gcsfs"]
Returns the error:
/bin/sh: 1: ["pip",: not found
Has anybody else had this error/know what the fix it? I'm assuming its not an issue with the base image?Bogdan Serban
01/10/2023, 12:03 PMPrefect 2.7.0
and am trying to set up some hooks to do some stuff (db updates and sending queue messages) whenever the state of a flow changes. I have tried using prefect-alert, but unfortunately that does not trigger when I am running the flow from a deployment. I am thinking that I could try and create a custom notification block, but it is not very clear if it is possible and how I could do so. I would really appreciate any suggestions on that, or, if there are any other mechanisms to define custom flow state update callbacks.James Phoenix
01/10/2023, 1:00 PMJames Phoenix
01/10/2023, 1:00 PMMike Grabbe
01/10/2023, 1:33 PMJames Phoenix
01/10/2023, 2:24 PMMike Grabbe
01/10/2023, 2:24 PMJames Phoenix
01/10/2023, 2:24 PMDanilo Drobac
01/10/2023, 4:06 PMJames Phoenix
01/10/2023, 4:23 PM