https://prefect.io
Join Slack
<@ULVA73B9P> Is it possible to manually set a working directory when deploying a flow to a work pool...
m

Max Kolasinski

over 2 years ago
@Marvin Is it possible to manually set a working directory when deploying a flow to a work pool?
m
m
n
  • 3
  • 20
  • 670
Has anyone figured out how to overwrite parameters in prefect 2 for a flow on a per schedule basis, ...
s

Seth Coussens

almost 4 years ago
Has anyone figured out how to overwrite parameters in prefect 2 for a flow on a per schedule basis, the way you could in prefect 1? A lot of overhead in Prefect 2 right now if you just want to send a simple variable change for a flow depending on the time the flow runs. Currently, the only solution I've found is to have 2 separate deployments registered with different schedules and variables.
✅ 1
s
s
t
  • 3
  • 7
  • 654
Hi Everyone, I am trying to trigger prefect flow deployed on cloud whenever file is landed to S3 buc...
j

JV

almost 4 years ago
Hi Everyone, I am trying to trigger prefect flow deployed on cloud whenever file is landed to S3 bucket using AWS Lambda function by referring this documentation from Chris. Lambda function is failing with
"errorMessage": "HTTP Error 404: Not Found"
I am passing API URL
<https://api.prefect.io>
. I understand that this documentation is not latest and I also tried URL
<https://api.prefect.cloud/>
and getting same error. Request your inputs regarding this error in Prefect version 2.0
✅ 1
j
r
n
  • 3
  • 12
  • 652
Question, I am running a flow and have it saving a file to a relative path. When I check the relativ...
j

John Kang

about 4 years ago
Question, I am running a flow and have it saving a file to a relative path. When I check the relative path on my local filesystem the file is not updated when the flow executes from a Prefect agent. I tried it again with a remote filesystem and it does not update the files on the remote filesystem. I checked on the server and the blocks holding the credentials for both local and remote both state that the block has read and write privileges. Any idea on what I can do to actually have the file update the local (when the deployment is run using the local file system) and remote (when the deployment is run using the remote file system)?
j
a
k
  • 3
  • 10
  • 650
Hi I'm currently trying to do some deployment testing, and I'm getting the following error: Specifi...
s

Sang Young Noh

over 4 years ago
Hi I'm currently trying to do some deployment testing, and I'm getting the following error: Specification in 'newflow.py', line 13 failed validation! You have not configured default storage on the server or set a storage to use for this deployment but this deployment is using a Universal flow runner which requires remote storage. I've currently got a file called: from prefect import flow @flow def hello_world(name="world"): print(f"Hello {name}!") # Note: a deployed flow does not need a command to # explicitly run the flow. The API handles this for you. # hello_world() from prefect.deployments import DeploymentSpec DeploymentSpec( flow=hello_world, name="hello-world-daily", ) and the error comes out when I run the following: prefect deployment create newflow.py
✅ 1
s
a
v
  • 3
  • 102
  • 650
<@ULVA73B9P> my flow run is stuck in "awaiting concurrency slot" state, but there is no other ongoin...
e

Eren Bilaloglu

over 1 year ago
@Marvin my flow run is stuck in "awaiting concurrency slot" state, but there is no other ongoing runs. Why?
e
m
  • 2
  • 18
  • 643
hi, I have a question about entrypoints and docker containers
v

Vlad S

over 2 years ago
hi, I have a question about entrypoints and docker containers
v
n
+2
  • 4
  • 46
  • 640
Logs not visible on UI , how to fix this ?
m

Muddassir Shaikh

over 4 years ago
Logs not visible on UI , how to fix this ?
discourse 1
m
a
+2
  • 4
  • 22
  • 638
Hey everyone, I'm getting the following error Pydantic error (in thread) when a scheduled deployment...
b

Brian Oldak

about 2 years ago
Hey everyone, I'm getting the following error Pydantic error (in thread) when a scheduled deployment runs. It looks like there's some issue with the way I've defined the schedule in
prefect.yaml
, but no change has been made to this and I have other scheduled deployments that are working fine with similar configuration. Has anyone run into this?
b
n
  • 2
  • 22
  • 631
I'm trying to dynamically add tags to a flow by iterating through a list. Tried a few different thi...
s

Sean Conroy

about 3 years ago
I'm trying to dynamically add tags to a flow by iterating through a list. Tried a few different things, but keep getting
TypeError: 'list' object does not support the context manager protocol
or
TypeError: 'generator' object does not support the context manager protocol
Here's one of my attempts. Any suggestions on how to do this?
from prefect import flow, task, tags
from prefect.context import TagsContext

def add_tags(tag):
    with tags(tag):
        yield

@flow()
def my_flow():
    # print(TagsContext.get().current_tags)
    print('inside flow')


tag_list = ['mytag1', 'mytag2']

with [add_tags(x) for x in tag_list]:
    my_flow()
s
n
d
  • 3
  • 20
  • 619
Previous456Next

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