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
# marvin-in-the-wild
  • j

    Jordan Fisher

    10/03/2024, 7:30 AM
    @Marvin Can I access information about the cloud workspace in automation action templates?
    m
    • 2
    • 1
  • b

    badr nadi

    10/03/2024, 2:53 PM
    @Marvin who are you
    m
    • 2
    • 1
  • s

    Slackbot

    10/03/2024, 2:54 PM
    This message was deleted.
    m
    • 2
    • 1
  • s

    Slackbot

    10/03/2024, 2:55 PM
    This message was deleted.
    m
    • 2
    • 1
  • s

    Slackbot

    10/03/2024, 2:56 PM
    This message was deleted.
    m
    • 2
    • 1
  • b

    badr nadi

    10/03/2024, 2:56 PM
    @Marvin hwo to parallelize a task
    m
    • 2
    • 3
  • j

    Ji-Oh Yoo

    10/03/2024, 8:01 PM
    @Marvin give me documentation on PREFECT_LOGGING_ROOT_LEVEL
    m
    • 2
    • 3
  • s

    syakesaba

    10/06/2024, 12:58 PM
    @Marvin In Prefect 3.x, Does my environment variable "PREFECT_API_TLS_INSECURE_SKIP_VERIFY" work for b/w worker and server? Not only normal HTTP over SSL/TLS but also WebSocketSecure.
    m
    • 2
    • 7
  • p

    Paweł Biernat

    10/07/2024, 6:50 AM
    @Marvin what pattern should I use for jobs that take a long time to spin up but then generate results fast? E.g. predictions with large machine learning models. I'd like to be able to keep the model loaded in GPU memory waiting for new prediction requests.
    m
    • 2
    • 7
  • p

    Paweł Biernat

    10/07/2024, 8:12 AM
    @Marvin how can I allow the task to tail? Sort of "ignore errors" in this task.
    m
    • 2
    • 7
  • s

    Sonny Nguyen

    10/07/2024, 8:20 AM
    @Marvin I'm setting up the prefect-snowflake integration but when executing using a connector, i get:
    Copy code
    snowflake.connector.errors.ProgrammingError: 090105 (22000): Cannot perform CREATE TABLE. This session does not have a current database. Call 'USE DATABASE', or use a qualified name.
    m
    s
    • 3
    • 8
  • n

    Noam

    10/07/2024, 9:16 AM
    @Marvin I have this env section in my k8s job template “env” : “{{ env }}“, how can I add a default env which will be present in all k8s jobs?
  • m

    Mehdi

    10/07/2024, 9:52 AM
    @Marvin How can I replicate this action
    logging.getlLogger('sqlalchemy.engine').setLevel(logging.ERROR)
    in all prefect flows I deploy with
    main.py
    ? Using this line in main.py doesn’t change anything for me
    m
    • 2
    • 5
  • g

    Giacomo Chiarella

    10/07/2024, 11:20 AM
    @Marvin how can I set a flow run to CANCELLED state using Prefect api?
    m
    • 2
    • 1
  • a

    Alex

    10/07/2024, 11:21 AM
    @Marvin I want to trigger a job from sensors or trigger to pass different values for Google Analytics data ingestion with dlt
    m
    • 2
    • 15
  • m

    Michael Bøcker-Larsen

    10/07/2024, 11:48 AM
    @Marvin When deploying a flow to a docker worker where the source is a github repository how do I make sure prefect-aws and prefect-github pip packages are installed?
    m
    • 2
    • 6
  • m

    Mehdi

    10/07/2024, 12:12 PM
    @Marvin How can I disable prefect logging to stdout
    m
    • 2
    • 3
  • k

    Kebre

    10/07/2024, 1:10 PM
    @Marvin Im using Prefect version 3 and I want user input in form of a dropdown, how do I build that?
    m
    • 2
    • 5
  • s

    Spida45

    10/07/2024, 1:53 PM
    @Marvin how can i be notified when a deployment is not ready status
    m
    n
    • 3
    • 12
  • d

    David

    10/07/2024, 2:01 PM
    @Marvin I am building a prefect_work_pool using the terraform resource like this
    Copy code
    resource "prefect_work_pool" "ecs_workpool" {
      name         = "ecs-pool-${var.name}"
      type         = "ecs"
      paused       = false
      workspace_id = var.prefect_workspace_id
      base_job_template = file("../../config/ecs-worker-job-configuration.json")
    }
    how do i ensure that the resource explicitly uses the variables in my job configuration file?
    m
    • 2
    • 1
  • c

    Cary

    10/07/2024, 7:55 PM
    @Marvin I followed the documentation at https://docs.prefect.io/contribute/develop-a-new-worker-type, but cannot get the worker to start. Digging into the source it looks like the worker type must be in the canonical
    aggregate-worker-metadata.json
    collections file. Is there a way to create a work pool and run a custom worker type without changing that file? This request seems related to this open issue, https://github.com/PrefectHQ/prefect/issues/10964, from last year but the docs made it seem like it was already possible.
    m
    n
    k
    • 4
    • 15
  • j

    Jonathan Samples

    10/07/2024, 8:00 PM
    @Marvin I've been following the ECS Worker Guide to get our infrastructure setup. Everything seems to be working fine except when I trigger a flow-run, it crashes and I don't get any logging in either the Prefect UI or in the ECS task. A couple things I've noticed: 1. The taskdef generated by the Prefect worker doesn't contain the prefect api url as an env var. Seems like it should: How does the worker pass this info to the flow task? 2. The taskdef generated by the Prefect worker doesn't have any logging setup. 3. The taskdef generated by the Prefect worker doesn't have any
    command
    to customize how the docker container should be run... How does it know to run the specific flow? 4. When I run the docker image (locally) that is generated by the prefect cli, it doesn't actually run the flow... it just opens a shell prompt.
    ✅ 1
    m
    k
    • 3
    • 34
  • m

    Mitch

    10/08/2024, 12:59 AM
    @Marvin in prefect 2, if I cancel a flow, will the termination of infrastructure be blocked by a running task?
    m
    • 2
    • 3
  • k

    Kebre

    10/08/2024, 7:18 AM
    @Marvin How do I use a enum input in prefect version 3?
  • p

    Paweł Biernat

    10/08/2024, 7:44 AM
    @Marvin can I set result persistence for just a specific flow on deployment in prefect.yaml?
    m
    • 2
    • 1
  • s

    Stas Grinberg

    10/08/2024, 8:51 AM
    @Marvin can you help me with this error when i am trying to run the prefect --no-prompt deploy --all to deploy my all flows to server
    Copy code
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/stas/PycharmProjects/data-infra-prefect/auto_scoring/functions/upload_csv_files.py", line 5, in <module>
        from functions.correlation_to_snowflake import load_correlation_to_snowflake
      File "/Users/stas/PycharmProjects/data-infra-prefect/auto_scoring/functions/correlation_to_snowflake.py", line 5, in <module>
        database = JSON.load("auto-scoring").value["database"]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'coroutine' object has no attribute 'value'
    An exception occurred.
    sys:1: RuntimeWarning: coroutine 'Block.load' was never awaited
    m
    • 2
    • 1
  • a

    Arthur Jacquemart

    10/08/2024, 8:53 AM
    @Marvin I am a bit confused because I cannot manage to retrieve the current state of a flow. I am using prefect 2 sdk in python. The triggering of the flow works fine so I dont think its a credential issue. However when I try to retrieve the state of the flow, I get prefect.exceptions.ObjectNotFound error. This is the code i am using:
    Copy code
    async with get_client() as client:
            flow_run = await client.read_flow_run(flow_run_id)
            print(flow_run.state.message)
            return flow_run.state.is_completed(), flow_run.state.message
            response = await client.hello()
            return response.json()
    Do you have any idea why it cannot manage to find this flow?
    m
    • 2
    • 3
  • d

    Dzmitry-S

    10/08/2024, 8:56 AM
    @Marvin How to implement in Prefect 3 something similar to Airflow's FileSensor, i.e. trigger flow run when some file or folder appears.
    m
    • 2
    • 4
  • b

    Bianca Hoch

    10/08/2024, 3:08 PM
    Hello community! As part of our efforts to consolidate channels in Prefect's community slack, we're going to be archiving this channel 🪦. Please redirect your messages to #C04DZJC94DC instead. We'll be happy to help you out there. Thank you for your understanding 🙇‍♂️!
    thank you 1
  • b

    Bianca Hoch

    10/08/2024, 3:08 PM
    archived the channel