Deep shah
05/17/2023, 4:53 PMAnthony Finocchiaro
05/17/2023, 6:18 PMThibaud
05/18/2023, 1:33 PMCasey
05/18/2023, 8:06 PMar
05/19/2023, 4:55 AMThibaud
05/19/2023, 5:21 PMAshe
05/19/2023, 5:58 PMAnthony Rodez
05/19/2023, 7:48 PMTim Josefsson
05/22/2023, 1:52 PMprefect server start
and then point my browser to <server-ip>:4200
to get the UI but only get "site can't be reached". However if I simple start a python http.server I can access that machine without a problem. I read online that previously there was a --expose
flag that you could run but it doesn't seem to be a part of prefect2. Does anyone have any experience with getting this working, maybe I'm just missing something?Alessandro De Rose
05/22/2023, 4:46 PMmypy
is complaining when attempting to unpack a tuple returned from a task. In the example below, when attempting to unpack a
& b
from the call to get_numbers
, mypy
raises the error "None" object is not iterable
. However, the type definition for the get_numbers
function shows that None
should never be returned from the task.
The main issue is that the type of get_numbers
within the flow is Task[(a: int, b: int), tuple[int, int]]
, instead of tuple[int, int]
as mypy
is expecting. Any idea how to avoid this type error without completely ignoring it? (Prefect v2.10.10, mypy v1.3.0)
from prefect import flow, task
@task
def get_numbers(a: int, b: int) -> tuple[int, int]:
return a, b
@flow
def get_numbers_flow() -> None:
a, b = get_numbers(1, 2) # <- "None" object is not iterable.
Anthony Rodez
05/22/2023, 8:16 PMquassy
05/22/2023, 10:06 PMname=
?
@flow
def do_things(): # flow will be named do-things not do_things as expected
pass
KEVIN K
05/22/2023, 11:16 PMOshri
05/23/2023, 1:14 AMquassy
05/23/2023, 5:26 PM@flow(flow_run_name="foobar")
? Even the examples from the docs copied verbatim do not work (see replies).Emanuel Dumitru
05/24/2023, 8:14 AMEmanuel Dumitru
05/24/2023, 8:16 AMfrom prefect.infrastructure.process import Process
the workflowsEmanuel Dumitru
05/24/2023, 8:16 AMEmanuel Dumitru
05/24/2023, 8:17 AMEmanuel Dumitru
05/24/2023, 8:19 AMEmanuel Dumitru
05/24/2023, 8:19 AMar
05/25/2023, 8:02 AMNimesh Kumar
05/26/2023, 9:18 AMTANVI SHINDODKAR
05/27/2023, 6:49 PMJozo
05/29/2023, 11:58 AMjuana
05/31/2023, 12:55 AMTypeError: task() got an unexpected keyword argument 'result_storage_key'
. I'm using Prefect version 2.8.2.Liam Coley
05/31/2023, 3:12 AMrepo-sub-path
below) but the code is not in the container. I’m running this command from within the container, and am getting this message: prefect deployment build flow_test.py:flow_test --name test --storage-block github/flow-repository --path repo-sub-path
.
What am I doing wrong? Do I need to have the code sitting in the container locally to set up the deployment? Or can I have it pull from Github when first generating the deployment yaml? Is this actually possible or do I need to push my code to a docker image and manually pull that each time I update my flows?
Appreciate any insight here.Devin
06/07/2023, 6:01 PMThe_Fanta
06/08/2023, 2:41 PMDevin
06/09/2023, 2:41 PM