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
# pacc-may-31-2023
  • c

    codingtacos

    06/01/2023, 1:16 PM
    Are agents going away - to be replaced by workers/work pools?
  • k

    Kalo

    06/01/2023, 1:19 PM
    prefect project init
    creates some files and directories, one of those is the directory
    .prefect
    - should we keep that one in VCS or not? I assume the other 3 should be version-controlled
  • k

    Kristian Sentić

    06/01/2023, 1:25 PM
    in the deployment.yaml files there is an working_dir parameter, for what is it used?
    👀 1
    e
    • 2
    • 3
  • l

    Li McCarthy

    06/01/2023, 1:29 PM
    Can you post the lab goals for 104? (similarly to https://prefect-community.slack.com/archives/C059R6NNYUR/p1685545915837549)
    👍 2
  • m

    Matt Conger

    06/01/2023, 1:30 PM
    104 Lab Instructions: Use your flow from 103 Lab • If you have flow function parameters, create default arguments in your flow function • Make a project • Start a worker • Run a deployment from the UI • Check it out in the UI
    🙏 1
    👍 2
  • m

    Matt Conger

    06/01/2023, 1:39 PM
    https://docs.prefect.io/2.10.11/concepts/work-pools/
  • r

    Robert Bruno

    06/01/2023, 1:41 PM
    my prefect local ui is trying to access api.prefect.could. how do i tell it to just do local?
    ✅ 1
    l
    • 2
    • 1
  • m

    Matt Conger

    06/01/2023, 1:42 PM
    https://docs.prefect.io/2.10.11/concepts/projects/
  • k

    Kalo

    06/01/2023, 1:45 PM
    1. I removed the default values for my entrypoint function:
    Copy code
    @flow
    def get_weather_data(lat, lon):
        weather_data = fetch_weather(lat, lon)
        soil_data = fetch_soil_data(lat, lon)
        to_write = transform_weather_data(weather_data, soil_data)
        save_weather(to_write)
    
    
    if __name__ == '__main__':
        get_weather_data()
    2. I created a deployment and left
    parameters
    as an empty dict:
    Copy code
    deployments:
      - name: My weather deployment
        version: 0.1
        tags: [ ]
        description: null
        schedule: { }
        flow_name: null
        entrypoint: "weather.py:get_weather_data"
        parameters: {}
        work_pool:
          name: null
          work_queue_name: null
          job_variables: { }
    3. I deployed it:
    prefect deploy "./weather.py:get_weather_data" -p my_pool
    4. Now if I open the deployment in the UI and choose "Quick Run", I am shown a form with
    lat
    and
    lon
    fields, which are empty, but they're also marked as (Optional) when they clearly aren't. The Run button is also enabled, it allows me to click it even if I leave the form fields empty, and if I do that, the flow fails. Did I do something wrong?
    e
    • 2
    • 4
  • a

    Akhil Potdar

    06/01/2023, 1:54 PM
    Thank you @Songlu Li @Luke here are the files for 104
    project_104.zip
    🙌 1
    🎉 1
  • k

    Kristian Sentić

    06/01/2023, 1:59 PM
    Suggestion for future pacc's: Maybe show people who already use Prefect 2 how to create and switch Profiles before 101 Lab. Even though I used a new project and a new venv with the newly installed prefect, it still used my default Profile and sent all flow runs to my cloud UI. I don't know if this would be too confusing for new people. And then maybe on 102 Lab show how to configure the new local server UI to that profile.
    🙏 2
    👀 1
  • e

    Emil Christensen

    06/01/2023, 2:05 PM
    @Stratos happy to dive into the issue you were seeing in the next lab, or after the course.
  • e

    Emil Christensen

    06/01/2023, 2:05 PM
    @Tim Lin Mind posting the errors you’re getting?
    ✅ 1
    t
    • 2
    • 5
  • l

    Li McCarthy

    06/01/2023, 2:09 PM
    A couple times when trying to deploy I got an error
    'NoneType' object has no attribute 'split'
    without any other useful info. does anyone have advice?
    👀 1
    e
    • 2
    • 12
  • e

    Emil Christensen

    06/01/2023, 2:19 PM
    Lab 105 Instructions • Create a deployment with an entrypoint flow with several parameters • Edit the deployment from the UI to override the parameters • Add two types of schedules - add each a different way (CLI, UI) • Pause the schedules • Create two kinds of artifacts in your flow code code • See your artifacts in the UI
  • e

    Emil Christensen

    06/01/2023, 2:30 PM
    @Tim Lin https://docs.prefect.io/2.10.11/concepts/projects/#reusing-configuration-across-deployments
    • 1
    • 1
  • r

    Robert Bruno

    06/01/2023, 2:37 PM
    I keep getting a FileNotFoundError for the script with my flow in it. Any thoughts on cause?
    m
    e
    • 3
    • 2
  • r

    Robert Bruno

    06/01/2023, 2:37 PM
    Error is Flow could not be retrieved from deployment
  • e

    Emil Christensen

    06/01/2023, 3:08 PM
    https://github.com/PrefectHQ/prefect/blob/main/scripts/entrypoint.sh
  • e

    Emil Christensen

    06/01/2023, 3:13 PM
    @Will Raphaelson <- Will
  • c

    Chris Guidry

    06/01/2023, 3:21 PM
    Here's the abstract base class for the `EventsClient`: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/clients.py#L12 and the Cloud-specific implementation: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/clients.py#L82 a test double: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/clients.py#L49 The key method to implement is
    emit
    🙌 2
    👍 1
  • e

    Emiliano

    06/01/2023, 3:39 PM
    One question that’s not related to automations. Is is possible to use prefect to orquestrate flows that gets data in real time (streaming)?
    e
    • 2
    • 3
  • e

    Emil Christensen

    06/01/2023, 3:40 PM
    @Chris Guidry <- Chris
  • e

    Emil Christensen

    06/01/2023, 3:41 PM
    Survey: https://forms.gle/AG6Pg6tmhNWzGP94A
  • k

    Kristian Sentić

    06/01/2023, 3:48 PM
    My microphone died at the end. I was going to ask you why did prefect cloud UI changed back to having deployments in the menu, few weeks ago you had them shown in the flow page connected to flow, now they are separate again
    ✅ 1
    e
    • 2
    • 6
  • e

    Emil Christensen

    06/01/2023, 3:53 PM
    📣 Please remember to fill out the survey… any and all feedback is welcome and really helps us improve 📣
    upvote 1
  • j

    Jeff Hale

    06/01/2023, 6:07 PM
    Hey all! Way to rock the past two days! 🚀 I’m sad I wasn’t able to join you earlier today due to a pet emergency but heard you had a great time with Emil, Matt, Will, and Chris! 🎉 The recording from day 2 is here: https://us06web.zoom.us/rec/share/ilvdfgaMVckoNS_iAYoNIfZqgCmotFwBq8S6oB5HmsrRYFwPRk9En_jc9Z33CZPk.C9xbHsqtH3hxDLNT Passcode: Ss=9p7=7
  • j

    Jeff Hale

    06/01/2023, 6:08 PM
    ⭐️ Thank you to everyone who already filled out the quick survey. Please take 3 minutes to do that when you get a chance.
  • j

    Jeff Hale

    06/01/2023, 6:11 PM
    prefect duckFolks who completed the course should receive your digital Prefect Associate Certification through the email that you registered for the course with. The email will come from Accredible and the name you registered for the course with will be on the certificate, so please let me know today if any changes are needed. You should receive that tomorrow. 🙂
  • j

    Jeff Hale

    06/07/2023, 5:17 PM
    archived the channel