https://prefect.io logo
Join Slack
Channels
ask-community
announcements
ask-marvin
best-practices
data-ecosystem
data-tricks-and-tips
events
feedback-deployment-concurrency
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
intros-test
livestream-chatter
marvin-ai
marvin-in-the-wild
pacc-apr-10-11-2024
pacc-apr-30-may-1-2024
pacc-apr-9-10-2025
pacc-aug-16-2023
pacc-aug-22-23-2023
pacc-aug-28-29-2024
pacc-aug-29-30-2023
pacc-clearcover-june-12-2023
pacc-dec-17-18-2024
pacc-feb-13-14-2024
pacc-feb-26-27-2025
pacc-jan-28-29-2025
pacc-july-11-12-2023
pacc-july-17-18-2023
pacc-july-30-31-2024
pacc-july-6-2023
pacc-june-14-2023
pacc-june-20-21-2024
pacc-london-2023
pacc-london-sept-2024
pacc-mar-12-13-2024
pacc-may-31-2023
pacc-nov-19-20-2024
pacc-nov-8-2023
pacc-nyc-may-2024
pacc-oct-11-12-2023
pacc-oct-1-2-2024
pacc-oct-16-17-2024
pacc-sept-13-14-2023
pacc-sept-20-21-2023
pacc-sept-26-27-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-contributors-archived
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-and-tell
Powered by
# ask-marvin
  • m

    mondras

    05/18/2023, 6:57 PM
    @Marvin using python
    Deployments.build_from_flow
    how do you set the
    PREFECT_API_URL
    ?
    n
    m
    • 3
    • 6
  • m

    Marco Barbero Mota

    05/18/2023, 7:07 PM
    @Marvin what does prefect save as a persitent result, is it just teh variable that a task returns in the return statement or is there more information in the pickle file that is saved?
    m
    n
    • 3
    • 49
  • a

    Ashe

    05/18/2023, 8:05 PM
    @Marvin why does prefect put a “-0” after my task names?
    m
    z
    • 3
    • 4
  • m

    mondras

    05/19/2023, 12:10 AM
    @Marvin trouble-shoot this
    Copy code
    Submission failed. RuntimeError: Timed out after 120.6319489479065s while watching task for status RUNNING
    m
    • 2
    • 1
  • p

    Pim Claessens

    05/19/2023, 12:26 PM
    @Marvin Is it possible to keep a flow running indefinitely?
    m
    n
    • 3
    • 9
  • a

    Ashe

    05/19/2023, 5:56 PM
    @Marvin how do you submit an entire flow async for an api to resolve?
    m
    n
    • 3
    • 15
  • m

    mondras

    05/19/2023, 6:00 PM
    @Marvin how to update, delete, create a block programmatically
    m
    n
    • 3
    • 3
  • n

    Nate

    05/19/2023, 6:08 PM
    hello all! I am taking Marvin offline for a bit to give him some rest (and some enhancements!) he'll be back soon 🙂 marvin
    🙌 1
    ✅ 1
  • n

    Nate

    05/19/2023, 9:16 PM
    @Marvin hey buddy
    m
    • 2
    • 13
  • m

    mondras

    05/20/2023, 12:16 AM
    @Marvin i have three profiles in .profiles/profiles.toml. i run a loop through each profile, set the active profile which has the PREFECT_API_URL to a workspace, and try to set up a block with each profile's configuration. unfortunately, the block are build to only one workspace. why
    m
    • 2
    • 3
  • s

    Stéphan Taljaard

    05/22/2023, 10:01 AM
    @Marvin Can you retry task runs only specific kinds of\ errors (i.e. only for ValueError, and only if the ValueError message matches a pattern)?
    m
    • 2
    • 1
  • n

    Nate

    05/22/2023, 4:46 PM
    test message
    m
    • 2
    • 2
  • m

    mondras

    05/22/2023, 10:31 PM
    @Marvin is there a way of creating a block object from querying the api such as an object mapper?
    m
    n
    • 3
    • 23
  • m

    mondras

    05/23/2023, 3:51 PM
    @Marvin i see this function https://github.com/PrefectHQ/prefect/blob/main/src/prefect/client/orchestration.py#L1348, namely create_deployment. it requires a flow_id. does one register a flow before a deployment?
    m
    n
    • 3
    • 17
  • m

    Matt Alhonte

    05/24/2023, 1:42 AM
    @Marvin Is there a simple way to register every single flow in a directory? The equivalent of
    prefect register <filepath>
    in Prefect 1? Assume it's a bunch of
    py
    files with Deployments defined in Python code.
    m
    n
    a
    • 4
    • 25
  • m

    Matt Alhonte

    05/24/2023, 2:00 AM
    @Marvin Does Prefect 2 necessarily mean having to deal with
    yaml
    files?
    m
    • 2
    • 1
  • e

    Ethan Veres

    05/24/2023, 2:22 AM
    @Marvin how can I catch errors in sub flows
    m
    • 2
    • 1
  • m

    Max Kolasinski

    05/24/2023, 7:40 PM
    @Marvin How can I delete a block by providing its slug in Python?
    n
    m
    • 3
    • 8
  • s

    Slackbot

    05/25/2023, 8:20 AM
    This message was deleted.
    m
    • 2
    • 2
  • m

    Max Kolasinski

    05/25/2023, 3:39 PM
    @Marvin How can I get a list of all deployments in Python?
    m
    n
    • 3
    • 15
  • r

    Ryan Morshead

    05/25/2023, 9:20 PM
    @Marvin I’m getting this error:
    Copy code
    Exception ignored in: <async_generator object add_event_loop_shutdown_callback.<locals>.on_shutdown at 0x7f3d81b374c0>
    Traceback (most recent call last):
      File "/home/jon/miniconda3/envs/abraxas-env/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 308, in on_shutdown
    AttributeError: 'NoneType' object has no attribute 'pop'
    Is this an internal Prefect bug?
    m
    • 2
    • 1
  • s

    Sean Conroy

    05/25/2023, 11:35 PM
    @Marvin I'm getting this error:
    Failed("Flow run encountered an exception. PrefectHTTPStatusError: Client error '429 Too Many Requests'"
    What is the limit? How can I solve this?
    m
    n
    a
    • 4
    • 7
  • m

    Matt Alhonte

    05/26/2023, 5:07 AM
    @Marvin How do I run multiple subflows concurrently? Neither the Dask nor Concurrent taskrunners seem to let me do this.
    m
    • 2
    • 1
  • n

    Nick

    05/26/2023, 7:24 AM
    @Marvin Demonstrate how I can configure scheduled flows using cron schedules in Prefect to skip certain periods based on a given condition. For example, if new data is extracted, I want the flow to run on a weekly basis instead of a daily basis.
    m
    • 2
    • 1
  • n

    Nick

    05/26/2023, 7:41 AM
    Demonstrate how I can write two subflows within one flow. Each subflow should call the three same tasks I have previously defined.
    m
    • 2
    • 2
  • t

    Tarek

    05/26/2023, 8:44 AM
    @Marvin Is there any way to choose a deployment version to run?
    m
    • 2
    • 1
  • j

    Jimmy Le

    05/26/2023, 3:32 PM
    @Marvin How do I cache a Pandas Dataframe?
    m
    n
    m
    • 4
    • 10
  • v

    Victor Churikov

    05/28/2023, 8:09 PM
    @Marvin Can I customize the kubernetes tolerations for pods scheduled by Dask-Gateway when using prefect_dask with cluster_class=‘dask_gateway.GatewayCluster’ as my task_runner?
    ✅ 1
    m
    n
    • 3
    • 8
  • n

    Nick

    05/29/2023, 5:03 PM
    How do I update a locally hosted Prefect server, without stopping the server?
    m
    • 2
    • 4
  • m

    Marco Barbero Mota

    05/29/2023, 9:11 PM
    @Marvin how do I erase the cache of a flow or task?
    m
    r
    • 3
    • 3
1...789...16Latest