https://prefect.io
Join Slack
Hi all, just getting started with Prefect and I'm stuck on error: ValueError: No Prefect API URL pro...
c

CJ

over 1 year ago
Hi all, just getting started with Prefect and I'm stuck on error: ValueError: No Prefect API URL provided. Please set PREFECT_API_URL to the address of a running Prefect server. prefect version = 3.1.1 I've confirmed the server is running at http://127.0.0.1:4200 I've updated pyproject.toml with
#  pyproject.tom

[tool.prefect]
logging.level = "DEBUG"
api.url = "<http://127.0.0.1:4200/api>"
Any guidance is appreciated
c
n
  • 2
  • 15
  • 187
We’re having trouble using Blocks with SecretStr on the latest prefect (2.14.5) with pydantic 2 (2.5...
l

Lee Mendelowitz

over 2 years ago
We’re having trouble using Blocks with SecretStr on the latest prefect (2.14.5) with pydantic 2 (2.5.1). When I paste the example from the prefect docs into a ipython session, I get an error:
from typing import Optional

from prefect.blocks.core import Block
from pydantic import SecretStr

class AWSCredentials(Block):
    aws_access_key_id: Optional[str] = None
    aws_secret_access_key: Optional[SecretStr] = None
    aws_session_token: Optional[str] = None
    profile_name: Optional[str] = None
    region_name: Optional[str] = None
RuntimeError: no validator found for <class 'pydantic.types.SecretStr'>, see `arbitrary_types_allowed` in Config
Anyone have any ideas? I know pinning
pydantic<2
will make the error go away, but since Prefect supports pydantic 2 I’m trying to understand if this is a Prefect bug or if we need to do something differently with our blocks on pydantic 2.
✅ 1
l
a
  • 2
  • 8
  • 187
Hi, getting this error suddenly. Anyone aware of what this is? ImportError: cannot import name 'sta...
a

Ankit

almost 3 years ago
Hi, getting this error suddenly. Anyone aware of what this is? ImportError: cannot import name 'start_blocking_portal' from 'anyio' (/usr/local/lib/python3.8/dist-packages/anyio/__init__.py)
✅ 1
a
j
s
  • 3
  • 6
  • 187
Hello, if anyone is using prefect on a SLURM cluster, I am interested in connecting to learn about t...
s

Sultan Orazbayev

over 4 years ago
Hello, if anyone is using prefect on a SLURM cluster, I am interested in connecting to learn about the experience.
s
k
+2
  • 4
  • 8
  • 187
<@ULVA73B9P> How can I disable prefect logging to stdout
m

Mehdi

almost 2 years ago
@Marvin How can I disable prefect logging to stdout
m
m
  • 2
  • 3
  • 186
Hey Folks :wave: Lately, some of my flow runs have a "Run Count" of 2 (instead of 1). When looking ...
j

Jean-Michel Provencher

about 3 years ago
Hey Folks 👋 Lately, some of my flow runs have a "Run Count" of 2 (instead of 1). When looking at the "Results" tab I see that both runs were started pretty much at the same time. We're using k8s infra. What could be the conditions of a single flow run being started more than once? Having a flow launched twice can be quite problematic, especially when they have the same id.
j
z
t
  • 3
  • 10
  • 186
hi <@ULVA73B9P> - i'm using slack webhooks and posting markdown message with the notify() method - b...
v

Venky Rao

about 1 year ago
hi @Marvin - i'm using slack webhooks and posting markdown message with the notify() method - but i'm not seeing the markdown rendered in slack - what should i fix? my code is like:
slack_webhook_block = SlackWebhook.load("gen3-fleet-health-slack-notifications")
slack_webhook_block.notify(f"Fleet monitoring summary: {summary_md}")
v
m
  • 2
  • 15
  • 185
Hello Prefect community, how can I retry a task on specific error codes (500) with the same inputs b...
n

Nicolas Ouporov

over 2 years ago
Hello Prefect community, how can I retry a task on specific error codes (500) with the same inputs but using conditional logic based on the number of retries. So if the previous error code was 500 and the current retry count is 2, follow this particular path, otherwise follow the standard path? Our OCR pipeline has a long running task that often returns 500 if the file cannot be read. When we receive this error, we want to do postprocessing on the pdf (converting to an image) and rerun the task.
n
n
  • 2
  • 22
  • 185
Hi, is there a way to trigger a flow run similar to a webhook logic without using prefect cloud? I h...
j

João Vitor Bezerra

over 2 years ago
Hi, is there a way to trigger a flow run similar to a webhook logic without using prefect cloud? I have all of my infrastructure on Azure, and I wanted to trigger a flow run when a file is created on datalake.
j
n
  • 2
  • 5
  • 185
<@ULVA73B9P> How do I pass a event payload as a trigger parameter for a deployment?
s

Sanjeev

over 2 years ago
@Marvin How do I pass a event payload as a trigger parameter for a deployment?
s
m
t
  • 3
  • 20
  • 185
Previous414243Next

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