Dmytro Ponomarchuk
02/09/2023, 7:43 AMState Message
Submission failed. botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: TaskDefinition is inactive
Tolga Karahan
02/09/2023, 9:01 AMPēteris Kļaviņš
02/09/2023, 9:03 AM{"url":[]}
. Is this a bug? I am running Prefect 2.7.12 locally on Python 3.10.9 on sqlite 3.40.1.Deceivious
02/09/2023, 9:25 AMprefect.context.get_run_context()
returns a TaskRunContext when triggered from a running task which does not have Flow name.
Thanks!Tadej Svetina
02/09/2023, 9:31 AMAleksandr Liadov
02/09/2023, 10:21 AMJoseph Thickpenny Ryan
02/09/2023, 12:51 PMJon
02/09/2023, 1:11 PMget_task_run_result
from a dependent flow. The child flow runs and is successful, but the parent flow seems to be unaware of that? we are using local storage to persist task results. this error only happens sometimes.
Task 'get_task_run_result': Exception encountered during task execution!
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/engine/task_runner.py", line 880, in get_task_run_state
value = prefect.utilities.executors.run_task_with_timeout(
File "/usr/local/lib/python3.9/site-packages/prefect/utilities/executors.py", line 468, in run_task_with_timeout
return task.run(*args, **kwargs) # type: ignore
File "/usr/local/lib/python3.9/site-packages/prefect/tasks/prefect/flow_run.py", line 239, in get_task_run_result
return task_run.get_result()
File "/usr/local/lib/python3.9/site-packages/prefect/backend/task_run.py", line 73, in get_result
raise ValueError("The task result cannot be loaded if it is not finished.")
ValueError: The task result cannot be loaded if it is not finished.
Task 'get_task_run_result': Finished task run for task with final state: 'Failed'
Farooque Shaikh
02/09/2023, 2:13 PMAleksandr Liadov
02/09/2023, 4:27 PMCompleted
, orion graph has red parts
, and all my subtasks crashed
?
And in logs I see crashed
.
Maybe it changes smth:
• I submit with options every task and I add str(uuid.uuid4())[:8] before every task name.
• error: Crash detected! Execution was interrupted by an unexpected exception: concurrent.futures._base.CancelledError: 2ae637b0currency_symbol-26-99893272733d461fba8a3051f42a13a8-1
Tim-Oliver
02/09/2023, 4:52 PMPatrick Tan
02/09/2023, 8:06 PMAndrew Richards
02/09/2023, 8:28 PM--- Orion logging error ---
Traceback (most recent call last):
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/prefect/logging/handlers.py", line 151, in send_logs
await client.create_logs(self._pending_logs)
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/prefect/client/orion.py", line 1843, in create_logs
await <http://self._client.post|self._client.post>(f"/logs/", json=serialized_logs)
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/httpx/_client.py", line 1855, in post
extensions=extensions,
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/httpx/_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/prefect/client/base.py", line 253, in send
response.raise_for_status()
File "/root/micromamba/envs/prefect/lib/python3.7/site-packages/httpx/_models.py", line 736, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '429 Too Many Requests' for url '<https://api.prefect.cloud/api/accounts/><redacted>/workspaces/<redacted>/logs/'
For more information check: <https://httpstatuses.com/429>
Worker information:
Approximate queue length: 8
Pending log batch length: 3
Pending log batch size: 1128
Khyaati Jindal
02/10/2023, 3:06 AMTS
02/10/2023, 4:09 AMIgor Pontes
02/10/2023, 4:18 AMinfrastructure=KubernetesJob(
namespace="prefect-orion",
image="<http://docker.io/myrepo/myimage:tag|docker.io/myrepo/myimage:tag>"
),
but I'm getting this error:
Flow run infrastructure exited with non-zero status code -1.
• a DockerContainer
I passed my credentials directed in a Docker Registry and I created a DockerContainer.
but I'm getting this error:
State Message
Submission failed. Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/usr/local/lib/python3.10/http/client.py", line 975, in send self.connect() File "/usr/local/lib/python3.10/site-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) FileNotFoundError: [Errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/usr/local/lib/python3.10/http/client.py", line 975, in send self.connect() File "/usr/local/lib/python3.10/site-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 214, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] File "/usr/local/lib/python3.10/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) File "/usr/local/lib/python3.10/site-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 237, in _get return self.get(url, **self._set_request_timeout(kwargs)) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 600, in get return self.request("GET", url, **kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 89, in _get_docker_client docker_client = docker.from_env() File "/usr/local/lib/python3.10/site-packages/docker/client.py", line 96, in from_env return cls( File "/usr/local/lib/python3.10/site-packages/docker/client.py", line 45, in __init__ self.api = APIClient(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 197, in __init__ self._version = self._retrieve_server_version() File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 221, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) The above exception was the direct cause of the following exception: RuntimeError: Could not connect to Docker.
anyone have an idea how to pass docker credentials to be able use a private docker image in a KubernetesJob? 😕
thanksMalinkin Sergey
02/10/2023, 7:37 AMalembic.script.revision.MultipleHeads: Multiple heads are present for given argument 'head'; 898a4c563127, cfdfec5d7557
alembic.util.exc.CommandError: Multiple head revisions are present for given argument 'head'; please specify a specific target revision, '<branchname>@head' to narrow to a specific head, or 'heads' for all heads
Anyone have an idea how to fix it?Nimesh Kumar
02/10/2023, 9:07 AMAnkit
02/10/2023, 9:18 AMNikhil Joseph
02/10/2023, 11:24 AMTon Steijvers
02/10/2023, 2:14 PMretries=3
. One of my tasks returns a SnowflakeConnector
that gets passed to a few other tasks that perform queries on the db. If one of the tasks fails, the flow is retried and throws the following exception:
pydantic.error_wrappers.ValidationError: 1 validation error for ParsingModel[SnowflakeConnector]
__root__ -> schema
field required (type=value_error.missing)
This is probably because of the SecretStr
field in the SnowflakeConnector
that holds the password. In ~/.prefect/storage
I can see the persisted results of the tasks and secret strings are obviously obfuscated. How is the retry mechanism supposed to work if my tasks work with SecretStr of SnowflakeConnections?Andres
02/10/2023, 3:20 PMtask_args={"name": "current-task-run-name"}
Apostolos Papafragkakis
02/10/2023, 3:37 PMTon Steijvers
02/10/2023, 4:04 PMtimeout_seconds
not working properly. I expect that after the timeout elapses and the flow is still in a Running state, the flow should be marked as failed. However, if the agent is not able to talk to the flow any more (maybe the pod got evicted) then its state will not be updated any more.
Is this expected behaviour or can I log an issue on this one?Joan Gil
02/10/2023, 5:42 PMLeon Kozlowski
02/10/2023, 6:04 PM.map()
- however I am on prefect version 2.7.10
and figured this wouldn't be an issue, wondering if I am missing some sort of configuration somewhereIsmail Cenik
02/10/2023, 7:05 PMZachary Lee
02/10/2023, 8:08 PMCancelled()
from within a task it only cancels the task, not the entire flow.Ebenezer Ankrah
02/10/2023, 10:22 PMDaskTaskRunner
that and multiple tasks. Prior to setting a max_runtime
the flow would crash after 90 minutes on whatever task it is currently on but instead of the flow entering the failed state it shows as completed. Is this by design or a bug? If it is by design, is there a way to set the flow to instead enter the failed state to keep incomplete ETLs from being missed?Vee
02/10/2023, 11:17 PMset_schedule_inactive
for a deployment when a flow run fails in 2.0?