Stephen Lloyd
03/17/2023, 10:48 AM.submit()
, but I cannot find a way to reduce the results into a format that can be used by a non-mapped/non-async task.
I need to find the equivalent in Prefect 2, preferrably using ConcurrentTaskRunner rather than asyncio. It seems like it would be a common use case and I'm not sure why it is not available in Prefect 2.Deceivious
03/17/2023, 12:17 PMthreshold
and within
parameters on Automation API, but different flows may have different schedules hence the within
parameter is not enough. ++ Making a automation for each flow with different within
parameter value doesnt sound fun esp. when the rule is pretty simple.Tim Wisniewski
03/17/2023, 12:39 PMfrom prefect_monzo import MonzoCredentials
)Adam
03/17/2023, 1:56 PMcoroutine
instead of the credential dict. Wondering if anyone has successfully pulled off what I am attempting. I assume its not working because I am taking prebuilt flows but not sure. Thanks for the insight!Josefin Winberg
03/17/2023, 2:05 PMMiremad Aghili
03/17/2023, 2:33 PMprefect.exceptions.ClientError: [{'path': ['set_task_run_states'], 'message': 'State update failed for task run ID e18b41ed-7ce8-449f-bda2-6de3956eb555: provided a running state but associated flow run 8484f5dc-acef-4ac5-ae08-9bf6d72edcf2 is not in a running state.', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
cloud you guys help me understand what causes this issue?Josh Paulin
03/17/2023, 2:52 PMTomas Moreno
03/17/2023, 3:04 PMGabriel Moran
03/17/2023, 3:35 PMFlow could not be retrieved from deployment.
I've been testing changing the configuration of the deployment but I had no luck. Permissions to the bucket seem to be ok. do you have any idea of what am I missing? Thanks!Jason Noxon
03/17/2023, 5:11 PMVivek Madenur
03/17/2023, 5:27 PMAaron
03/17/2023, 5:28 PMJean-Michel Provencher
03/17/2023, 6:49 PMJax
03/19/2023, 12:09 AMTim Wisniewski
03/19/2023, 2:38 PMprefect
on it, copy my workflow repo onto it, prefect login
to prefect cloud, and then have systemd run prefect agent start
? Or do I need to add a 'process block'?Sean Brady
03/20/2023, 2:05 AMwei Liu
03/20/2023, 7:59 AMbigquery_load_file
method, but it can't find the dataset in bq. I am sure I have created the dataset.Deceivious
03/20/2023, 8:47 AMKristian Andersen Hole
03/20/2023, 9:11 AMtimeout_seconds.
I’ve put a timeout on both the parent and sub-flows, and the timout on the parents works nicely, leading to a ‘Timeout’ state after the specified time. The sub-flows just go on forever though. Anyone know what might be going wrong?
Prefect version 2.7.8
Wellington Braga
03/20/2023, 2:56 PMTraceback (most recent call last):
...
Remote Storage block must have 'get-directory' capabilities. (type=value_error)
Andreas Nord
03/20/2023, 3:37 PMMatt Delacour
03/20/2023, 4:28 PMPeter Peter
03/20/2023, 6:44 PMdherincx
03/20/2023, 6:58 PMChoenden Kyirong
03/20/2023, 7:17 PMTomas Moreno
03/20/2023, 9:52 PMclass DHFlow(Flow):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.add_task(Parameter(name="some_param", default=True))
which works locally but breaks in the cloud with
Failed to retrieve task state with error: ClientError([{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}])
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/engine/cloud/task_runner.py", line 154, in initialize_run
task_run_info = self.client.get_task_run_info(
File "/usr/local/lib/python3.10/site-packages/prefect/client/client.py", line 1803, in get_task_run_info
result = self.graphql(mutation) # type: Any
File "/usr/local/lib/python3.10/site-packages/prefect/client/client.py", line 570, in graphql
raise ClientError(result["errors"])
prefect.exceptions.ClientError: [{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}]
James Ashby
03/20/2023, 9:52 PMnakul bajaj
03/21/2023, 5:30 AMAnkit
03/21/2023, 6:54 AMFlow run infrastructure exited with non-zero status code -1.
But when I check the logs of kubernetes pod, tasks keep running. Sometime even the subsequent tasks are triggered but at time it fails and kills the pod. Anyone knows what can it be? Thanks.Ton Steijvers
03/21/2023, 11:04 AMif __name__ == "__main__":
with tags("local"):
my_flow()
In the UI I can see all flow runs, whether run through the deployment or locally. All have the required "local" tag assigned to it.
I tried removing the tag from the automation and select my flow name instead. Then the automation works both when run as a deployment and when run locally.
Is this a known issue or limitation in using tags for an automation?