Kiril Kamenev
01/24/2023, 11:25 AMMalek
01/24/2023, 12:42 PMJason Noxon
01/24/2023, 1:05 PMHans Lellelid
01/24/2023, 1:34 PMPREFECT_SERVER__BASE_URL
but that seems to be for v1. I'm using Traefik to reverse proxy https traffic to Prefect. The UI loads, but I see this error displayed: "Can't connect to Orion API at http://0.0.0.0:4200/api"Ankit
01/24/2023, 1:42 PMAlix Cook
01/24/2023, 3:28 PMpending
or running
, any ideas on how i figure out what is blocking this queue from starting new runs?Sam Garvis
01/24/2023, 3:37 PMTypeError: Type is not JSON serializable: numpy.float64
This error is thrown on a line in a flow that simply passes 3 dataframes into a function call.
Like nothing within the code, it's the line that calls the function.
Does anyone know what this is?Nils
01/24/2023, 3:59 PMFlorian Giroud
01/24/2023, 4:01 PMYD
01/24/2023, 4:08 PM07:51:37.133 | INFO | Flow run 'ultra-honeybee' - Finished in state Completed('All states completed.')
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/IPython/core/history.py", line 780, in writeout_cache
self._writeout_input_cache(conn)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/IPython/core/history.py", line 763, in _writeout_input_cache
conn.execute("INSERT INTO history VALUES (?, ?, ?, ?)",
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 123145498836992 and this is thread id 140704730421440.
Tony Alfonse
01/24/2023, 4:29 PMDileep Damodaran
01/24/2023, 5:16 PMprefect
flow and set the reference tasks parameters based on that.
with Flow(
"Master",
schedule=schedule,
run_config=master_run_config,
terminal_state_handler=_utils.final_state_handler,
) as flow:
logger = prefect.utilities.logging.get_logger("master")
bot_ids = Parameter("Bot Ids", required=False, default="")
bots = bot_ids.run() if bot_ids else ""
bots = [x for x in bots.split(",") if x]
bots = [x.strip() for x in bots]
all_b = ['A','B','C','D']
unknown_bots = [b for b in bots if b and b not in all_b]
if len(unknown_bots) > 0:
#TODO raise exception
#TODO set reference tasks
From the above code snippet, Iām expecting a parameter Bot Ids
and checking if the supplied Bot Ids
are valid or not.
Here Iām facing two issues:
⢠Bot Ids
parameter is not available in the prefect UI. I tried passing Bot ids
to one of the reference tasks (Though Iām not using the parameter inside the task), and the parameter started appearing in the prefect Run Flow UI. is there any way to make the parameter input available in prefect Ui without having to pass the parameter to any of the reference tasks
⢠I tried passing values for Bot Ids
from the prefect UI and noticed that it was not getting captured in the master
flow. I was always getting bot_ids
as empty
⢠I tried changing the default value of the parameter , and noticed that the flow was working as expected.
bot_ids = Parameter("Bot Ids", required=False, default="steps")
Why is that the default value works in this case, but not the supplied values?Bryan Whiting
01/24/2023, 5:39 PMOfir
01/24/2023, 5:39 PMNimesh Kumar
01/24/2023, 5:59 PMPeter Peter
01/24/2023, 6:02 PMKevin McCraney
01/24/2023, 6:42 PMTrevor Kramer
01/24/2023, 6:59 PMMatt Delacour
01/24/2023, 9:06 PM@task
def A() -> List[int]:
return [1, 2, 3]
@task
def B(y: int) -> int:
return y + 100
with Flow('flat map') as f:
a = A() # [1, 2, 3]
b = B.map(x=a) # [101, 102, 103]
to
@task
def A() -> List[int]:
return [1, 2, 3]
@task
def B(values: List[int]) -> List[int]:
return [y + 100 for y in values]
with Flow('flat map') as f:
a = A() # [1, 2, 3]
b = B.map(x=a, batches=2) # [101, 102, 103]
TomƔs Emilio Silva Ebensperger
01/24/2023, 9:38 PMJason Noxon
01/24/2023, 10:15 PMBryan Whiting
01/24/2023, 10:50 PMexport PREFECT__LOGGING__LEVEL=DEBUG
def main():
logger = get_run_logger()
logger.warning("warning")
logger.debug("debug")
<http://logger.info|logger.info>("info")
logger.critical("critical")
yet the debug isnāt printing:
14:49:20.921 | WARNING | Flow run 'wonderful-hamster' - warning
14:49:20.921 | INFO | Flow run 'wonderful-hamster' - info
14:49:20.922 | CRITICAL | Flow run 'wonderful-hamster' - critical
Bryan Whiting
01/24/2023, 11:19 PMTimo Vink
01/24/2023, 11:27 PMFarid
01/25/2023, 2:25 AMModuleNotFoundError: No module named 's3fs'
when running the flow.
⢠I am not using a custom image for the agent or the the job and prefer to keep using official images.
⢠I have specified the env for the kubernetes job in the Prefect UI but it does not make a different.
⢠I have also tried adding the pip install s3fs
command to the agent's deployment manifest but that doesn't make a difference either.
Any ideas?Dileep Damodaran
01/25/2023, 3:38 AMprefect
flow and set the reference tasks parameters based on that.
with Flow(
"Master",
schedule=schedule,
run_config=master_run_config,
terminal_state_handler=_utils.final_state_handler,
) as flow:
logger = prefect.utilities.logging.get_logger("master")
bot_ids = Parameter("Bot Ids", required=False, default="")
bots = bot_ids.run() if bot_ids else ""
bots = [x for x in bots.split(",") if x]
bots = [x.strip() for x in bots]
all_b = ['A','B','C','D']
unknown_bots = [b for b in bots if b and b not in all_b]
if len(unknown_bots) > 0:
#TODO raise exception
#TODO set reference tasks
From the above code snippet, Iām expecting a parameter Bot Ids
and checking if the supplied Bot Ids
are valid or not.
Here Iām facing two issues:
⢠Bot Ids
parameter is not available in the prefect UI. I tried passing Bot ids
to one of the reference tasks (Though Iām not using the parameter inside the task), and the parameter started appearing in the prefect Run Flow UI. is there any way to make the parameter input available in prefect Ui without having to pass the parameter to any of the reference tasks
⢠I tried passing values for Bot Ids
from the prefect UI and noticed that it was not getting captured in the master
flow. I was always getting bot_ids
as empty
⢠I tried changing the default value of the parameter , and noticed that the flow was working as expected.
bot_ids = Parameter("Bot Ids", required=False, default="steps")
Why is that the default value works in this case, but not the supplied values?Jesper Hemmingsson
01/25/2023, 8:55 AMTadej Svetina
01/25/2023, 10:44 AMeddy davies
01/25/2023, 1:20 PMMarcelo Santoro
01/25/2023, 3:24 PM