https://prefect.io
Join Slack
<@ULVA73B9P> How do I set a Flow to the `Failed` state from within a Task that's been submitted to t...
m

Matt Alhonte

almost 2 years ago
@Marvin How do I set a Flow to the
Failed
state from within a Task that's been submitted to the
ConcurrentTaskRunner
?
m
m
m
  • 3
  • 9
  • 460
<@ULVA73B9P> How do I run an async flow when deploying using a prefect.yaml file
s

Sukanta Roy

about 1 year ago
@Marvin How do I run an async flow when deploying using a prefect.yaml file
s
m
m
  • 3
  • 147
  • 458
<@ULVA73B9P> how do i run tasks asynchronously in prefect 3.x
g

Guilins

8 months ago
@Marvin how do i run tasks asynchronously in prefect 3.x
g
m
  • 2
  • 9
  • 458
Hi, in prefect 2.0 - is there a way to perform 'yields' - we have some (unfortunately) long running ...
m

Malthe Karbo

over 3 years ago
Hi, in prefect 2.0 - is there a way to perform 'yields' - we have some (unfortunately) long running tasks where we stream some content, which takes a while (+30 min, very large zipped json files) - and I can't seem to figure out if I can yield partial result futures in my task incrementally and start processing them in down stream tasks. Currently, the work flow is: • Stream read big annoying file into small chunks, save them in S3 incrementally in a separate thread inside the task, and return list of all the chunked file URI's as single result (= single
prefectfuture[list[str]])
object) ◦ this is where I would like to yield • Run some down stream processing on each chunk ◦ Here we use future.result() to loop over and start each task - this works 100%, but if we could use yield in the first task, we could begin processing immediately Is something like this supported / going to be supported? I tried making it work with contextmanager and tasks, but ran into nothing but trouble
m
a
  • 2
  • 12
  • 455
Is there currently a way of overriding a task name when calling it in Prefect 2? The following (whic...
o

Oscar Björhn

about 3 years ago
Is there currently a way of overriding a task name when calling it in Prefect 2? The following (which is what the documentation recommends, unless I'm reading it wrong) appears to have no effect: my_task_function(name="Custom Task Name") The task run name for the above task ends up being "my_task_function-6971d82e-1"
✅ 1
o
j
+3
  • 5
  • 13
  • 454
<@ULVA73B9P> what causes the database to be locked? I find this to happen a lot when I run many flow...
c

Charles

12 months ago
@Marvin what causes the database to be locked? I find this to happen a lot when I run many flows in parallel
c
m
  • 2
  • 1
  • 453
The concept of Agent and Work Queues is really useful. But as far as I understand, Work Queue's hold...
s

Sergiy Popovych

about 3 years ago
The concept of Agent and Work Queues is really useful. But as far as I understand, Work Queue's hold only flows, not tasks. What queue do tasks go into? Is there a way for a user to tap into that queue?
✅ 1
s
m
+2
  • 4
  • 9
  • 452
I'm running into some memory limits with a flow using an ECSRun config on a LocalCluster DaskExecuto...
s

Scott Aefsky

over 3 years ago
I'm running into some memory limits with a flow using an ECSRun config on a LocalCluster DaskExecutor. The first task in the flow is to generate a list of file keys, and then I map over that list to process the files. I would have expected that when an individual Mapped Child task completes, any memory used in that task would have been released (aside from the return value). But it seems like that is not the case, as the process eventually runs out of memory after several Mapped Children finish. Is there something I can do in the configuration of the flow or task to mitigate this? As an aside, when I run this same flow using a FargateCluster, it will complete without issue. I'm not sure if that's because the FargateCluster I'm using just has more memory, or if there's something inherently different between the two different DaskExecutor classes. Thanks as always for any help you can provide.
s
a
+2
  • 4
  • 28
  • 452
Hi im getting error when runing `prefect worker start --pool my-docker-pool` " Unable to start wor...
j

Javeed Pasha

over 1 year ago
Hi im getting error when runing
prefect worker start --pool my-docker-pool
" Unable to start worker. Please ensure you have the necessary dependencies installed to run your desired worker type." can someone please help . Thanks
✅ 2
j
j
  • 2
  • 3
  • 441
What is the proper way to stop local Prefect? I run 'prefect server start' as backend server and the...
i

Ievgenii Martynenko

over 3 years ago
What is the proper way to stop local Prefect? I run 'prefect server start' as backend server and then press Ctrl+C to stop it, next time you start it Prefect throws a lot of duplicate violation errors and doesn't start properly (you can't create a project for example)
i
a
  • 2
  • 4
  • 435
Previous678Next

Prefect Community

Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.

Powered by