Chris Goddard
05/26/2023, 6:08 PMmain
function - with everything else being plain async python) and i’m still getting random hangs — and when I kill the script, it seems (as best as I can tell), that the KeyboardInterrupt
gets caught somewhere within the prefect codebase.
what is curious is that when I dropped the top-level @flow
altogether and just ran as a plain python script, it hasn’t stalled yet (will update if it does).
is it possible that there’s something going on with longer-running (5min+) async flows that’s causing them to hang at some point? I thought maybe it was to do with hitting the logging rate limit but by removing all of the task decorators I’ve managed to limit the overall prefect calls significantly.
I’m racking my brain at this point. anyone have any experience with long-running async programs? are there other factors that could be causing random hangs?jack
05/26/2023, 6:44 PMapi/work_queues/[ID]/status
endpoint, is it possible to modify the health_check_policy? Here is a typical response:
{
"healthy": true,
"late_runs_count": 0,
"last_polled": "2023-05-09T17:08:54.625892+00:00",
"health_check_policy": {
"maximum_late_runs": 0,
"maximum_seconds_since_last_polled": 60
}
}
Charles Leung
05/26/2023, 8:34 PMJenia Varavva
05/26/2023, 8:40 PMrun_deployment()
doesn't expose a PrefectFuture()
interface similar to Task.submit()
? For a flow like:
@flow
def f():
a = subflow_foo.submit(1) # .submit() doesn't exist on Flow or run_deployment().
b = subflow_foo.submit(2)
c = subflow_foo.submit(3)
x = subflow_bar(a, b)
y = subflow_bar(b, c)
x.wait()
y.wait()
I want to get the engine's dependency tracking to kick off downstream sub-flows as soon as their dependencies are satisfied. It feels like I could wrap run_deployment() in a future myself, but maybe I'm missing some non-obvious reason this wouldn't work?Jacob Bedard
05/26/2023, 9:24 PMFarhood Etaati
05/27/2023, 10:42 AMRobert Banick
05/29/2023, 3:11 AMFREQ=DAILY;BYHOUR=10;BYMINUTE=21
.
Even more curiously, sometimes the schedule will seem to work correctly immediately after running. Then I will check back some hours or a day later and the duplication will have happened.Nikhil Joseph
05/29/2023, 8:29 AMLuis Cebrián
05/29/2023, 10:30 AMThe notification block was invalid: KeyError(\"No class found for dispatch key 'slack-incoming-webhook' in registry for type 'Block'.\")
Is this a bug?Soami Charan
05/29/2023, 11:42 AMtask
with cache_key_fn
, then that where is that cache is stored in Prefect cloud?
If I use self hosted version then where this cache is stored and retrieved?Nicholas
05/29/2023, 2:04 PMtask
decorator is causing some issues with mypy
. 🧵Florent VanDeMoortele
05/29/2023, 4:03 PMprefect_docker
template to build a docker image and to push it on my private registry (on Gcloud) but it looks like it's not possible to use an other registry than docker. Any idea?
Otherwise, what's the best practice to deploy a docker image flow on a private storage?Deceivious
05/30/2023, 8:08 AMDeployment
class and I have been seeing the following logs.
08:02:49.965 | WARNING | prefect.server.services.cancellationcleanup - CancellationCleanup took 26.55879 seconds to run, which is longer than its loop interval of 20.0 seconds.
Is it safe to disable Cancellation cleanup service on my temporary Prefect server that I use only for deployment?Farhood Etaati
05/30/2023, 9:13 AMFarhood Etaati
05/30/2023, 9:13 AMJavier Ebrero
05/30/2023, 10:21 AMon_failure=[function_to_execute]
def function_to_execute(flow, flow_run, state):
#get task name an error
I am using prefect 2.10.10 versionkasteph
05/30/2023, 3:30 PMJacob Bedard
05/30/2023, 3:59 PMJacob Goldberg
05/30/2023, 4:19 PM09:00:08.037 | ERROR | Flow run 'cobalt-ladybug' - Flow could not be retrieved from deployment.
Based on this recipe on github I saw that “with image-based infrastructure blocks…the image can serve as a fourth storage option…In practice, when creating a deployment with an image-based infrastructure block, you can omit the storage block and Prefect will assume your flow code is available in the image at runtime.”
I assume that when i run `prefect deploy`in the CLI, my flows will be bundles up and stored in the docker container, but i guess that is not the case. Can someone provide guidance? I attached my deployment.yaml and prefect.yaml files here to help debugNicholas
05/30/2023, 4:24 PMdeployment.yaml
for my project:
deployments:
- name: my-kubernetes
version: "0.0.1"
entrypoint: demo.py:run_demo_prefect
infrastructure:
type: kubernetes-job
image: "docker-repository-url/image-name:tag"
work_pool:
name: default
work_queue_name: default
The worker correctly runs the deployment in a new Kubernetes Job, yet using the default Prefect image instead of the one I have specified. What I’m missing?Elliot Løvås
05/30/2023, 4:50 PMprefecthq/prefect:2.10.11-python3.10-conda
image. Whenever I include the ENTRYPOINT ["prefect", "agent", "start", "-q", "default"]
, I encounter the following error: 'Failed to deploy '<unknown> Dockerfile: Dockerfile': Status 400: {"message":"failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "prefect": executable file not found in $PATH: unknown"}'. Interestingly, I don't encounter this problem with the prefecthq/prefect:2.10.11-python3.10
image. Any ideas on how to resolve this?John Horn
05/30/2023, 7:04 PMPaco Ibañez
05/30/2023, 10:18 PMEngine execution of flow run '2c1f694b-3ca7-45f4-8048-908838963b52' aborted by orchestrator: This run has already terminated.
Any ideas? thanks!gojaeheon
05/31/2023, 2:13 AMRohan Chutke
05/31/2023, 3:35 AMdherincx
05/31/2023, 3:58 AMDeceivious
05/31/2023, 8:42 AMimran
05/31/2023, 9:18 AMJozo
05/31/2023, 9:27 AMimran
05/31/2023, 9:27 AM