https://prefect.io
Join Slack
Hi All, I want to schedule a prefect flow every minute and within the flow have a check to determine...
p

Prasanth Kothuri

almost 4 years ago
Hi All, I want to schedule a prefect flow every minute and within the flow have a check to determine a file in s3 has changed, if the file is changed a bunch of tasks are executed, otherwise flow exits, for this I need to maintain state across flows, how can I do that, thanks a ton
p
a
a
  • 3
  • 10
  • 204
Hey folks - trying to authenticate with prefect Cloud via a startup script on a VM with the followin...
d

Danilo Drobac

almost 3 years ago
Hey folks - trying to authenticate with prefect Cloud via a startup script on a VM with the following command:
prefect cloud login -k PREFECT_API_KEY
and I'm getting the following error:
When not using an interactive terminal, you must supply a `--key` and `--workspace`
Do I have to hardcode a workspace for this to work?
✅ 1
d
z
  • 2
  • 14
  • 203
Hi, what is the best way to run "subtasks"? I know i can just use in taskA ```taskB.run()``` but the...
m

Marcin Grzybowski

over 3 years ago
Hi, what is the best way to run "subtasks"? I know i can just use in taskA
taskB.run()
but then it's treated as a normal python function (so no logging, and no other prefect's magic is available for this taskB) I managed to workaround this creating a Flow in a Task, something like this:
@task
def taskA(config: dict):
#...
    with Flow() as flowB:
        taskB()
#...
    a = flow.runB()
it seems to work - i get logs for flowB and taskB, etc I can visualize both flows using flow.visualize() - on two separate diagrams - but it's all right for me. But is this a correct approach, or should I do this some other way?
m
a
  • 2
  • 13
  • 202
how to run a flow and wait for the result and then continue the other flow <@ULVA73B9P>
v

Victor

8 months ago
how to run a flow and wait for the result and then continue the other flow @Marvin
v
m
n
  • 3
  • 6
  • 201
Is there any way to limit concurrency when mapping over a task? I’m wanting to send a bunch of API r...
a

Alex Cano

about 6 years ago
Is there any way to limit concurrency when mapping over a task? I’m wanting to send a bunch of API requests, but the endpoint I’m hitting is pretty fragile. I’m wanting the exact map functionality (feed in a list, and have each execute), but limit the execution rate. Either sequentially or limiting to N concurrent requests would be great. I’ve achieved the same functionality by arbitrarily breaking up the number of requests I’d need to send into chunks, but then those either succeed or fail as a group, which I’m hoping to avoid.
a
c
m
  • 3
  • 9
  • 200
<@ULVA73B9P>, if I run `prefect worker start` instead of `prefect agent start`, I get this error ```...
g

Giacomo Chiarella

over 1 year ago
@Marvin, if I run
prefect worker start
instead of
prefect agent start
, I get this error
Discovered type 'prefect-agent' for work pool '<>'.
'prefect-agent' typed work pools work with Prefect Agents instead of Workers.
Please use the 'prefect agent start' to start a Prefect Agent.
can you tell me how to solve it?
g
m
  • 2
  • 38
  • 199
<@ULVA73B9P> Can I run Docker with GPUs on Prefect?
p

Petko

almost 2 years ago
@Marvin Can I run Docker with GPUs on Prefect?
p
m
  • 2
  • 5
  • 199
In Prefect 2.0, I’m trying to create a Deployment which takes arguments from a configuration stored ...
r

Riccardo Tesselli

over 3 years ago
In Prefect 2.0, I’m trying to create a Deployment which takes arguments from a configuration stored in Prefect Cloud as a custom block. Here is the sample code:
config = CustomConfig.load('my_block')

Deployment(
    name="My deployment",
    flow=my_flow,
    parameters={
        "password": config.password
    }
)
when I run this command from CLI
prefect deployment create my_deployment.py
I get this error
AttributeError: 'coroutine' object has no attribute 'password'

Failed to load deployments from 'my_deployment.py'
sys:1: RuntimeWarning: coroutine 'Block.load' was never awaited
How can I do that?
r
a
  • 2
  • 8
  • 199
<@ULVA73B9P> I want to install self-hosted Prefect server with dashboard(that's Prefect UI ) in my U...
l

leah

about 1 year ago
@Marvin I want to install self-hosted Prefect server with dashboard(that's Prefect UI ) in my Ubuntu server, could you share me the install document?
l
m
  • 2
  • 10
  • 198
Hello! How do we change the prefect_api_url to our server host ip in selfhosted prefect. I first ran...
d

Deepthi

almost 2 years ago
Hello! How do we change the prefect_api_url to our server host ip in selfhosted prefect. I first ran the command prefect config set PREFECT_API_URL=http://MYHOSTIP:4200/api and then prefect server start, once the prefect server starts, I am seeing it pointed to http://127.0.0.1:4200/api
✅ 1
d
j
c
  • 3
  • 9
  • 198
Previous242526Next

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