jack
04/24/2023, 6:53 PMShellTask
?Cody Frisby
04/24/2023, 8:05 PMbuild_from_flow
uploads the entire directory to storage rather than just the file that we want to deploy. Is there a workaround for this? We'd like to just upload the single file rather than the entire directory.... Thanks!jack
04/24/2023, 8:35 PMAndy Dienes
04/25/2023, 2:38 PMConnectionTerminated error_code:0
Worker 'KubernetesWorker 3fe10498-8e37-4bca-bc38-f1adf48ee842' started!
last_stream_id:19999, additional_data:None>
httpx.RemoteProtocolError: <ConnectionTerminated error_code:0,
raise mapped_exc(message) from exc
line 77, in map_httpcore_exceptions
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
with map_httpcore_exceptions():
line 352, in handle_async_request
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[truncated...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
runs_response = await self._get_scheduled_flow_runs()
372, in get_and_submit_flow_runs
File "/usr/local/lib/python3.11/site-packages/prefect/workers/base.py", line
await workload()
line 46, in critical_service_loop
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/services.py",
Traceback (most recent call last):
The above exception was the direct cause of the following exception:
last_stream_id:19999, additional_data:None>
httpcore.RemoteProtocolError: <ConnectionTerminated error_code:0,
raise RemoteProtocolError(self._connection_error_event)
139, in handle_async_request
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http2.py", line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[truncated...]
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
yield
line 60, in map_httpcore_exceptions
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
state ConnectionState.CLOSED
h2.exceptions.ProtocolError: Invalid input ConnectionInputs.SEND_HEADERS in
raise ProtocolError(
process_input
[truncated...]
During handling of the above exception, another exception occurred:
KeyError: (<ConnectionState.CLOSED: 3>, <ConnectionInputs.SEND_HEADERS: 0>)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
func, target_state = self._transitions[(self.state, input_)]
process_input
File "/usr/local/lib/python3.11/site-packages/h2/connection.py", line 224, in
Traceback (most recent call last):
Examples of recent errors:
Failed the last 3 attempts. Please check your environment and configuration.
Unable to load step function: {fully_qualified_name}. Attempting install of {requires}.
Adam Roderick
04/25/2023, 4:47 PMJhonatan Sossa
04/25/2023, 11:02 PMdarshan darshan
04/26/2023, 6:55 AMjack
04/26/2023, 5:53 PMScott Condo
04/26/2023, 9:02 PMClaire Scott
04/27/2023, 2:22 AMTaran Singh
04/27/2023, 4:07 AMLuke He
04/27/2023, 3:49 PMWei Hong Ho
04/27/2023, 5:54 PMprefect agent
in the background? and redirect standard error and output to a log file? something like nohup >> logskyle.p
04/27/2023, 11:13 PMIlya Galperin
04/27/2023, 11:17 PMKirill Egorov
04/28/2023, 5:47 AMalex
04/28/2023, 5:40 PM<https://api.prefect.cloud/api/accounts/xxxx/workspaces/yyy/flow_runs/zzz/resume>
is returning a 404 detail "Not Found"
Nicholas Torba
04/28/2023, 6:29 PMfrom prefect.filesystems import S3
s3_block = S3.load("flow-code")
s3_block.get_directory(from_path="/", local_path=".")
and it also downloads in a couple of seconds
however, when I run the prefect-agent, it stalls at the download.
It stalls whether I use an S3 storage block or if I try to run it locally.
Frustrating because everything was working fine until it just... wasn't anymore.
Has anyone else seen this?
One difference I see in the code snippet to what is happening in prefect-agent code is that it is being run async, but I didn't think that should be an issueJhonatan Sossa
04/28/2023, 6:33 PMEncountered exception during execution:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 186, in connect_tcp
addr_obj = ip_address(remote_host)
File "/usr/lib/python3.10/ipaddress.py", line 54, in ip_address
raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: '<http://dbc-297e31f0-94d8.cloud.databricks.com|dbc-297e31f0-94d8.cloud.databricks.com>' does not appear to be an IPv4 or IPv6 address
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 111, in connect_tcp
stream: anyio.abc.ByteStream = await anyio.connect_tcp(
File "/home/ubuntu/.local/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 189, in connect_tcp
gai_res = await getaddrinfo(
asyncio.exceptions.CancelledError
It is important to say that no matter if the prefect flow run fails or not, the databricks job is successful. Does anyone know what is going on?David Anderson
05/01/2023, 9:48 PMAndy Dienes
05/02/2023, 5:27 PM404, deployment not found
error. and indeed, the deployment does not exist. my question is why is it looking for this deployment in the first place? where does the worker find its list of deployments? it shows as healthy in prefect but keeps crashing in kubeKelvin Tan
05/02/2023, 10:27 PMNicholas Torba
05/03/2023, 3:11 PMresponse: {'detail': 'Orchestration service in maintenance mode. Try again shortly.'}
How can I avoid this?Oscar Montanes
05/03/2023, 6:14 PMSantiago Gonzalez
05/03/2023, 6:48 PMdocker-git
/ docker-s3
, with image_name
and tag
, prefect.yaml
does have image_name
and tag
in null. Is that expected??Min Shi
05/04/2023, 8:06 AMModuleNotFoundError: No module named 'prefect.workers'
. I cannot find the solution via google search. Can anyone help?Santiago Gonzalez
05/04/2023, 3:33 PMregister_flow
(from prefect.projects.base
package) and it seems that does nothing at all, because I don’t see any deoloyment created on the workspace (Whatever if it enforces or not the overwritten). Is that what the method has been created for?Robin
05/04/2023, 7:37 PMwork queue
and work pool
behavior 🤔
I have created a deployment with work queue wq1
.
I have created a prefect agent with work queue wq1
.
• Agent started! Looking for work from queue(s): wq1...
When I trigger a flow via API, it is shown as:
• work pool: default-agent-pool
• work queue: wq1
However, the agent does not pick up that flow run 🤔
Any thoughts or suggestions?
PS: I did it similarly before and it worked before, I think.
PPS: I redeployed the flow already several times (i.e. whenever I needed to restart the related EC2 instance).Robin
05/04/2023, 7:48 PMFlow run 'ancient-bat' - Downloading flow code from storage at '/home/ubuntu'
And there even have been download errors.
I did not yet find a documentation that clarified what goes on for me 🤔
PS: Downloading takes ages (it is a pretty big conda environment).
PPS: It seems like the agent is redownloading the same flow code for each flow run.Santiago Gonzalez
05/04/2023, 8:23 PMdocker-s3
recipe at prefect project init
command, and I see that the push-folder
is always the name of the repo where the command runs over (ignoring folder
field I already provided).