Troels Bjørnskov
07/28/2022, 1:47 PM@flow
decorator.Riccardo Tesselli
07/28/2022, 1:53 PMimage_pull_policy
, is it going to be added in the upcoming releases?Chris Reuter
07/28/2022, 2:08 PMMatthew Seligson
07/28/2022, 2:21 PMSander
07/28/2022, 2:21 PMRiccardo Tesselli
07/28/2022, 2:25 PMprefect deployment build flows/hello_world.py:hello_world --name "Hello world dev" --tag kubernetes --tag dev --infra kubernetes-job --infra-block base-dev
and I got this:
File "/Users/tessellir/Projects/il-da-orchestrator/.venv/lib/python3.8/site-packages/prefect/blocks/core.py", line 501, in load
block_type_slug, block_document_name = name.split("/", 1)
ValueError: not enough values to unpack (expected 2, got 1)
An exception occurred.
I’ve ofc created a block in Prefect cloud of type KubernetesJob called base-dev, what am I missing?Sushma Adari
07/28/2022, 2:27 PMTim Enders
07/28/2022, 2:27 PMMathijs Carlu
07/28/2022, 2:57 PMMansour Zayer
07/28/2022, 3:28 PMA -> B (trigger: A finished) -> C (trigger: B successful)
I want C
to ignore what happens to A
, but only run if B
is successful. B
will run after A
is finished (no matter fail or success)
I looked into state and state_handlers, seemed too complicated for such a (seemingly) simple task.
edit: In other words, I don't want the trigger function to aggregate ALL the upstream tasks. Just consider the task that I've explicitly set as upstream
ThanksPaul Lucas
07/28/2022, 3:47 PMJack Chang
07/28/2022, 4:00 PMprefect run --name
and it set the flow to be scheduled on the cloud UI. I clicked start now
and the time has passed the 'Schedule to start' but my tasks are still in the scheduled state. Any thoughts on what I could do to start the flow?Andrew Miller
07/28/2022, 4:10 PMUserWarning: Attempted import of 'prefect.Parameter', which is part of Prefect 1.x, while Prefect 2.0.0 is installed. If you're upgrading you'll need to update your code, see the Prefect 2.x migration guide:However, the migration link gives me a 404 - Not found message.. Otherwise ensure that your code is pinned to the expected version.<https://orion-docs.prefect.io/migration_guide/>
Matthias
07/28/2022, 4:36 PMDmitrii Egunov
07/28/2022, 4:49 PMJack Chang
07/28/2022, 5:11 PMSana Shaikh
07/28/2022, 5:23 PMAlex Tam
07/28/2022, 6:02 PMFilip Floegel
07/28/2022, 6:13 PMKelvin
07/28/2022, 6:21 PMAndrew Miller
07/28/2022, 6:22 PMTasks cannot be run outside of a flow. To call the underlying task function outside of a flow useI triedtask.fn()
with prefect_test_harness():
but no luck...
Ah. Never mind, I should have been reading the error more. Calling fn
instead of run
fixes old test cases.Andrew Pruchinski
07/28/2022, 6:41 PMSlackbot
07/28/2022, 6:57 PMAndrew Miller
07/28/2022, 7:24 PM.map
method on my tasks. I wonder if Prefect 2.0 does not support thatChris Hansen
07/28/2022, 7:39 PMChu
07/28/2022, 8:06 PM@task('currency_orchestrator')
def call_currency_orchestrator():
return create_flow_run(
flow_name = "currency_orchestrator",
project_name = "xxxx",
)
why this throws me an error ??
aise TypeError("`fn` must be callable")
TypeError: `fn` must be callable
basically I wanna use that task to call a registered flow..Matt Delacour
07/28/2022, 8:12 PMMatt Delacour
07/28/2022, 8:17 PMSince API keys can be used across tenants if linked to a user account, you may also pass a tenant:
https://docs-v1.prefect.io/orchestration/concepts/api.html#authenticating-the-client-with-cloudWhat are the difference between "Tenants" and "Workspaces"? I might not fully understand those 2 keywords the right way
Andreas Nigg
07/28/2022, 8:22 PMAndrew Miller
07/28/2022, 8:38 PMprefect.config
in Prefect 2.0? I tried using Settings but I cant put custom key value pairs in it.Andrew Miller
07/28/2022, 8:38 PMprefect.config
in Prefect 2.0? I tried using Settings but I cant put custom key value pairs in it.Anna Geller
07/28/2022, 8:48 PMAndrew Miller
07/28/2022, 8:54 PMAnna Geller
07/28/2022, 10:15 PMAndrew Miller
07/28/2022, 10:21 PMAnna Geller
07/28/2022, 10:34 PMhttps://www.youtube.com/watch?v=YyAQ61eRGhI&list=PLZfWmQS5hVzF3u9FY4-43U4UoTblFgC2l▾
Matthias
07/29/2022, 7:15 AMAnna Geller
07/29/2022, 12:33 PM