Quan Bach
05/31/2023, 3:52 PMJeff Hale
05/31/2023, 3:58 PMStratos
05/31/2023, 4:10 PMJeff Hale
05/31/2023, 5:29 PMEmil Christensen
06/01/2023, 12:57 PMcodingtacos
06/01/2023, 1:16 PMKalo
06/01/2023, 1:19 PMprefect 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-controlledKristian Sentić
06/01/2023, 1:25 PMLi McCarthy
06/01/2023, 1:29 PMMatt Conger
06/01/2023, 1:30 PMMatt Conger
06/01/2023, 1:39 PMRobert Bruno
06/01/2023, 1:41 PMMatt Conger
06/01/2023, 1:42 PMKalo
06/01/2023, 1:45 PM@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:
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?Akhil Potdar
06/01/2023, 1:54 PMKristian Sentić
06/01/2023, 1:59 PMEmil Christensen
06/01/2023, 2:05 PMEmil Christensen
06/01/2023, 2:05 PMLi McCarthy
06/01/2023, 2:09 PM'NoneType' object has no attribute 'split'
without any other useful info. does anyone have advice?Emil Christensen
06/01/2023, 2:19 PMEmil Christensen
06/01/2023, 2:30 PMRobert Bruno
06/01/2023, 2:37 PMRobert Bruno
06/01/2023, 2:37 PMEmil Christensen
06/01/2023, 3:08 PMEmil Christensen
06/01/2023, 3:13 PMChris Guidry
06/01/2023, 3:21 PMemit
Emiliano
06/01/2023, 3:39 PMEmil Christensen
06/01/2023, 3:40 PMEmil Christensen
06/01/2023, 3:41 PMKristian Sentić
06/01/2023, 3:48 PM