https://prefect.io logo
Join Slack
Powered by
# ask-community
  • r

    Riya Sinha

    11/08/2025, 7:33 PM
    sorry, is anyone else having trouble launching subflows when running on prefect managed infrastructure / prefect cloud? i have an hourly flow that launches some subflows, and that used to work, but for the past 12 hours the prefect python api is giving an http read error when trying to launch the subflows eg:
    Copy code
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.12/site-packages/prefect/flow_engine.py", line 1079, in create_flow_run
        return await client.create_flow_run(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.12/site-packages/prefect/client/orchestration/_flow_runs/client.py", line 568, in create_flow_run
        response = await self.request("POST", "/flow_runs/", json=flow_run_create_json)
    full trace in thread to avoid large message — just wanted to ask if this is an issue others are currently facing recently
    n
    • 2
    • 3
  • h

    HW

    11/10/2025, 7:33 AM
    hi, when I try pytest prefect, it shows
    Copy code
    [error] tests\conftest.py:76: in <module>
        from .fixtures.api import *
    tests\fixtures\api.py:12: in <module>
        from prefect.settings import PREFECT_SERVER_DOCKET_NAME, temporary_settings
    E   ImportError: cannot import name 'PREFECT_SERVER_DOCKET_NAME' from 'prefect.settings' (...\Lib\site-packages\prefect\settings\__init__.py)
    I don't know how settings like PREFECT_SERVER_DOCKET_NAME works, anybody help?
    • 1
    • 1
  • n

    Nathan Low

    11/10/2025, 2:41 PM
    Hi All, Has anyone else been able to get github and prefect-cloud integration to work? I do the following and get an error when pip has finished installing:
    Copy code
    pull:
        - prefect.deployments.steps.run_shell_script:
            id: get-github-token
            script: uv tool run prefect-cloud github token owner/repository
        - prefect.deployments.steps.git_clone:
            id: git-clone
            repository: <https://x-access-token>:{{ get-github-token.stdout }}@github.com/owner/repository.git
    Then I get this error when running the run_shell_script step when the flow start to run:
    Copy code
    `run_shell_script` failed with error code 1: Downloading pygments (1.2MiB)
    Downloading uv (20.4MiB)
    Downloading pydantic-core (2.0MiB)
     Downloading pydantic-core
     Downloading uv
     Downloading pygments
    Installed 35 packages in 126ms
    Bytecode compiled 1004 files in 1.11s
  • m

    Michel Lalancette

    11/11/2025, 12:20 AM
    Is there a Prefect roadmap available? I'm curious to know what's next :)
    n
    • 2
    • 2
  • k

    Kevin Hu

    11/11/2025, 7:16 PM
    Hi is there a way to define a deployment in prefect.yaml that just runs a shell script without defining the flow in python? im using prefect 3.
  • t

    Theom

    11/12/2025, 9:41 AM
    Hi everyone, I use local storage for result persistence. I'd like to set different paths for different workflows that are deployed together (through the
    .to_deployment
    +
    serve
    scheme). If I set the environment variable
    PREFECT_RESULTS_LOCAL_STORAGE_PATH
    , it's set to the same value for all workflows. I asked Marvin and I was told to set
    result_storage
    in the flow decorator, either to
    LocalFileSystem(basepath=path1)
    or
    Path(path1)
    but it fails. Somehow I need to call
    .save()
    on the
    LocalFileSystem
    instance beforehand to create a block server-side. I find this a bit convoluted for a fairly simple need, especially since I otherwise don't need to do it when using the
    PREFECT_RESULTS_LOCAL_STORAGE_PATH
    variable set to arbitrary values. Marvin also told me that I could pass
    PREFECT_RESULTS_LOCAL_STORAGE_PATH
    as a job variable to the deployment, but that it was not the recommended solution. What would you recommend? Also, if there are no other solutions than what I described, I would argue that being allowed to simply provide a
    Path
    object to
    result_storage
    would be a reasonable behaviour to expect and I would be interested in discussing it or filing an issue on GitHub. Thanks!
  • p

    Phillip Shearin

    11/12/2025, 3:11 PM
    Hi All. I am one of the thousands of newly unemployed data analysts/engineers, and I am looking to continue my upskilling to include Prefect, while also finding an online public dataset that is continuously updated that I can do batch, or micro-batch extracts from to populate an iceberg-based data lakehouse, while also applying dbt to the workflow to build various analytics views in PowerBI, Tableau, and Apache Superset. This is all to create a demonstratable portfolio in github or gitlab CI/CD. Before I spend hours looking for that right candidate dataset, could any of you already suggest a public dataset, with a URL? Thanks in advance.
    🎉 2
    good luck 1
    j
    n
    • 3
    • 5
  • t

    Tri

    11/13/2025, 4:54 PM
    Hi, Prefect Assets is currently only for cloud version, is there any plan to have it on open-source version? That's a very cool feature.
    n
    • 2
    • 1
  • h

    hambone johnston

    11/13/2025, 8:15 PM
    yo do you guys have problems w/ prefect crashing on high task loads? i've been trying to make prefect work for us for a number of months, but getting a bit discouraged: whenever a flow queues up thousands of tasks (on the order of 10,000+) prefect just outright crashes i'm using redis as the message broker, have the background services spun up separately, etc. i've resorted to writing my own very basic task queue, which works --- but given that such a simple (but important) piece of architecture solves the problem, i'm assuming i'm doing something terribly wrong? [basically: "don't queue up more than a couple-hundred tasks on prefect. wait until there are fewer than 100, then queue up 300"] but that's the kind of thing i'd want prefect itself to deal with
    j
    n
    • 3
    • 21
  • h

    hambone johnston

    11/13/2025, 8:16 PM
    it's been kind of a struggle 😞
  • a

    alex joyce

    11/14/2025, 6:34 AM
    Hi Everyone, I am using prefect for some automations. .I am using same configurations in both staging and production for deployment .but in staging if I make any change ,the deployment is taking the new code .but in production it is not happening. Anyone knows what will be the issue
  • n

    Nathan Low

    11/14/2025, 2:57 PM
    Is there any way to disable the Oops. something went wrong pop ups on prefect 3? I’m worried staff against using prefect where I work will use that as a reason for the company to stop using it completely. Seems to mostly be caused by database uniqueness errors in Postgres and the database being locked on development machines.
  • j

    Jordan Jones

    11/14/2025, 4:18 PM
    Is there anywhere I can get the prefect icon for my slack webhook integration?
    j
    s
    • 3
    • 4
  • s

    Sergio Luceno

    11/14/2025, 5:17 PM
    Hi everyone, does anyone have faced the following? We have a self hosted prefect with EKS and we do use the official prefect helm charts In order to safe resources, and because our flows are really simple... instead of running workers kubernetes types, we switch them to run process types. After few days running this way, we noticed the following: • We have runs indefinetly in RUNNING status. They never finish. It happens because we have autoscaling, and whenever we downscale, the worker pod receives the sigterm, we cal clearly see two log lines about SIGTERM, but it stops immediately. It''s like the worker process receives the sigterm, but it does not wait to anything, just stops, so it does not gracefully stops. The deployment has a terminationGracePeriod defined of 60sec, but it does not matter as the pod automatically shutsdown without waiting. We tried to upgrade to the latest version of the image the helm chart could use ( prefecthq/prefect:3.6.1-python3.11-kubernetes) but we are having problems too cc @Marvin
    m
    • 2
    • 10
  • k

    Kevin Hu

    11/14/2025, 5:51 PM
    Hi everyone, we experienced a bug where after re-deploying a flow, the prefect server created duplicate scheduled runs of the flow. when we manually disabled the schedule and re-enabled it, the server correctly only generated single runs. is this a known issue with updating existing deployments?
    • 1
    • 1
  • c

    Chu

    11/14/2025, 7:42 PM
    https://prefect-community.slack.com/archives/C04DZJC94DC/p1763146961194199?thread_ts=1763145223.026799&amp;cid=C04DZJC94DC Is this right that a subflow inherits the
    result_storage
    from the parent flow, even if the subflow had its own
    result_storage
    set?
    👀 1
    n
    s
    • 3
    • 18
  • s

    Sơn Lê

    11/15/2025, 10:01 AM
    Hi everyone, i'm trying to build a pipeline which have the following components: • Schedule Coordinator: Receive event through a queue and parse the event for scheduling job. We are using github storage to create the flow (to avoid import many dependencies of different workflow into scheduler). • A workpool in K8s • Worker running flow in K8s also Everything is working but we have a problem with the Scheduler Coordinator caused OOM error on K8s even we have tried to increase the memory for the pod, the problem is happened when the schedule coordinator trying to pull github (our github repo size is only 5 MB and we already increase the memory of the pod to 1Gb). Is anyone have this problem before? And beside using github storage to create a flow, is there any different way to create flow without needing to import dependencies of these flows? Thanks!
    n
    • 2
    • 1
  • l

    Lucas

    11/17/2025, 3:09 AM
    Hi everyone - my company is evaluating prefect, and have a question about static typing (pyright). It appears to me that if you have a function defined with some input parameters, the
    @task
    annotation will hide those parameters from the typechecker. e.g., this code will not throw an error:
    Copy code
    @task
    def example_task(b: bool):
      return False
    
    @flow
    def example_flow():
      return example_task()
    Is this expected behavior? Did I misconfigure something?
    n
    • 2
    • 19
  • l

    Lucas

    11/17/2025, 3:26 AM
    Second question - we use django's ORM for db models. Are there any issues with passing these models between tasks? I think they're serializable.
    n
    j
    • 3
    • 8
  • f

    Fabio Geraci

    11/17/2025, 12:14 PM
    Hello, I was wondering if it would be better to start the worker from the gitlab ci or using system service?
  • t

    Tobias Graml

    11/17/2025, 1:36 PM
    Hi everyone, we are running prefect3 on k8s and for some automations we have a time delay of 15minutes. Automation is to send a notification if a flow run enters Completed status. Sometimes the automation is immediate but most of the time there is a 15min delay. Any ideas what this could be?
    n
    • 2
    • 3
  • n

    Nathan Low

    11/17/2025, 8:49 PM
    I'm seeing variables change within a mapped task where I have the task call a function. The function prints out the row mapped by the dataframe and returns that value, but later uses of the variable have different values than what was set by the function previously. Did something change from v2 to v3? Should I make the function a task to have it behave normally?
    n
    m
    • 3
    • 21
  • j

    Jake Kaplan

    11/18/2025, 1:08 AM
    hey, nothing that I'm aware of. Could you share your account ID and more specifically what you're seeing?
    l
    • 2
    • 6
  • a

    Amrit Amar

    11/18/2025, 5:55 AM
    Hi everyone, I am trying to run ECS Tasks on AWS. I setup a self-hosted Prefect server, and a worker service that submits tasks to ECS. However, these tasks are not running correctly. These tasks are Docker containers that I have deployed on the self-hosted prefect server (and I run them on there). I think the main problem is that Fargate is running on x86_64 and these are ARM. I can't figure out how to get ARM running on Fargate and if I switch the built to x86_64/AMD, then the container isn't pulled correctly from ECS. I am not sure how to remedy this and would like some help in figuring it out. I have pasted the details in the comment on the yaml/code. I have tried editing the base worker template and nothing happens. I decided to then create a custom task definition and now instead of getting the failure
    exec /usr/bin/tini: exec format error
    I got the PREFECT in ASCII and then nothing which I imagine is because the Prefect Task/RunId is invalid? I'm not sure what to make of the entire thing and I am at a loss of what to do from here.
    • 1
    • 2
  • f

    František

    11/18/2025, 9:29 AM
    Self hosted, v 3.4.25, Kubernetes worker Concurrency limit set to 1 at deployment level, policy set to cancel new Common behavior: duplicate runs start, several seconds apart, one gets cancelled -- Why, has anyone seen this? Example yaml deployment config:
    Copy code
    - name: other
      description: XXX
      entrypoint: XXXX:build_other
      schedules:
          - cron: "0 6 * * *"
            timezone: "Europe/Prague"
            active: true
      parameters: {}
      work_pool: *transformations
      pull: *work_dir
      concurrency_limit:
        limit: 1
        collision_strategy: "CANCEL_NEW"
  • k

    Khoa Phan

    11/18/2025, 3:15 PM
    Hello all, I am doing Gitlab migration with my current private repo using Prefect Cloud. However I am struggling with the pull step using the PAT (Personal or Project Access Token). As I understand based on the code in
    prefect/runner/storage.py
    I have to setup the token as
    oauth2:<token>@gitlab.corp-name/group/project.git
    However this does not work and i keep getting error 128. Any idea how to resolve this one? Or maybe some workaround that does not depends on pulling perhaps ?
  • t

    Tomáš Řehák (realrehi)

    11/18/2025, 3:53 PM
    Hello. Is there any way to set up retention for Flow Runs in Prefect OSS? And also something for other tables in Postgres, such as
    log
    etc. We found e.g. the
    PREFECT_EVENTS_RETENTION_PERIOD="2d"
    for
    events
    table. But is there any good "Overall Retention" setup guide?
    n
    • 2
    • 2
  • l

    Liam Shalon

    11/19/2025, 1:49 AM
    Hi all - the new UI/UX for Prefect is entirely unusable. It makes zero sense. Is there any way to roll it back?
    j
    • 2
    • 2
  • d

    Daniel

    11/19/2025, 1:08 PM
    Hi all, my company has been using prefect using a cloud run work pool for nearly 1 year now. I was investigating push work pools, so I deleted my old cloud run work pool temporarily (since free tier accounts have a max of 1 allowed). Then when I went to create a new work pool I am only able to use prefect’s managed work pool without upgrading?! The managed work pool doesn’t even allow for custom docker images. I was not clear that deleting my old cloud run work pool would regress the amount of functionality I could have on my free tier account! Please could someone advise what my options are here? Besides upgrading to pay 100$ / month?
    b
    • 2
    • 2
  • t

    Tom Han

    11/19/2025, 5:31 PM
    Has anyone been having issues with pulls_from_block on github? Since yesterdays github outage i’ve been having
    Copy code
    Failed to pull from remote:
     Cloning into '/tmp/tmp0h4b39iiprefect'...
    fatal: unable to access '<https://github.com/org/repo.git/>': Failed to connect to <http://github.com|github.com> port 443 after 131017 ms: Couldn't connect to server
    errors on most of my deployments
    n
    • 2
    • 2