Zach Marinov
11/22/2024, 4:38 PM195, in stream
    raise client.rest.ApiException(
kubernetes.client.exceptions.ApiException: (410)
Reason: Expired: too old resource version: 1837988160 (1838538580)Marvin
11/22/2024, 4:38 PM410 ExpiredNate
11/22/2024, 4:42 PMprefect-kubernetesZach Marinov
11/22/2024, 4:43 PMZach Marinov
11/22/2024, 4:43 PMNate
11/22/2024, 4:44 PMZach Marinov
11/22/2024, 4:46 PMZach Marinov
11/22/2024, 4:49 PMNate
11/22/2024, 4:51 PMZach Marinov
11/22/2024, 4:52 PMFile "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prefect_kubernetes/worker.py", line 1031, in _watch_job
    for event in self._job_events(
  File "/usr/local/lib/python3.11/site-packages/kubernetes/watch/watch.py", line 195, in stream
    raise client.rest.ApiException(
kubernetes.client.exceptions.ApiException: (410)
Reason: Expired: too old resource version: 1837988160 (1838538580)Nate
11/22/2024, 4:54 PMZach Marinov
11/22/2024, 4:55 PMKevin Grismore
11/22/2024, 4:56 PMKevin Grismore
11/22/2024, 4:57 PMZach Marinov
11/22/2024, 5:02 PMZach Marinov
11/22/2024, 5:04 PMZach Marinov
11/22/2024, 5:04 PM>>> from kubernetes_asyncio.client.exceptions import ApiException
>>> from kubernetes_asyncio.client.exceptions import ApiException as exception_asyncio
>>> from kubernetes.client.exceptions import ApiException as exception_sync
>>> exception_sync == exception_asyncio
False
>>> def foobar():
...     raise exception_sync("test")
...
>>> foobar()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in foobar
kubernetes.client.exceptions.ApiException: (test)
Reason: None
>>> try:
...     foobar()
... except exception_asyncio:
...     print('caught')
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "<stdin>", line 2, in foobar
kubernetes.client.exceptions.ApiException: (test)
Reason: None
>>> try:
...     foobar()
... except exception_sync:
...     print('caught')
...
caught
>>>Nate
11/22/2024, 5:04 PMNate
11/22/2024, 5:04 PMKevin Grismore
11/22/2024, 5:05 PMZach Marinov
11/22/2024, 5:05 PMZach Marinov
11/22/2024, 5:05 PMZach Marinov
11/22/2024, 5:05 PMZach Marinov
11/22/2024, 5:06 PMZach Marinov
11/22/2024, 5:06 PMZach Marinov
11/22/2024, 5:55 PMNate
11/22/2024, 5:56 PMKevin Grismore
11/22/2024, 6:38 PMskrawczyk
01/03/2025, 5:55 PM2.19.3skrawczyk
01/03/2025, 5:55 PMAn error occurred while monitoring flow run '5247ca1b-db07-45d6-b86b-3735746e5848'. The flow run will not be marked as failed, but an issue may have occurred.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/workers/base.py", line 908, in _submit_run_and_capture_errors
    result = await self.run(
  File "/usr/local/lib/python3.10/site-packages/prefect_kubernetes/worker.py", line 602, in run
    status_code = await run_sync_in_worker_thread(
  File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 136, in run_sync_in_worker_thread
    return await anyio.to_thread.run_sync(
  File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/usr/local/lib/python3.10/site-packages/prefect_kubernetes/worker.py", line 1031, in _watch_job
    for event in self._job_events(
  File "/usr/local/lib/python3.10/site-packages/kubernetes/watch/watch.py", line 195, in stream
    raise client.rest.ApiException(
kubernetes.client.exceptions.ApiException: (410)
Reason: Expired: too old resource version: 1651317987 (1651835806)skrawczyk
01/03/2025, 5:55 PMDennis L
01/26/2025, 11:35 PMskrawczyk
01/30/2025, 1:29 AMthe prefect-kubernetes 0.4.6 package should have all of the current bug fixes and should be available on any image running prefect 2.20.11 or later, i.e. 2.20.11-pyhton3.10-kubernetesBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by