port-ocean 0.12.2.dev12__py3-none-any.whl → 0.12.2.dev14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- port_ocean/utils/repeat.py +2 -5
- {port_ocean-0.12.2.dev12.dist-info → port_ocean-0.12.2.dev14.dist-info}/METADATA +1 -1
- {port_ocean-0.12.2.dev12.dist-info → port_ocean-0.12.2.dev14.dist-info}/RECORD +6 -6
- {port_ocean-0.12.2.dev12.dist-info → port_ocean-0.12.2.dev14.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.12.2.dev12.dist-info → port_ocean-0.12.2.dev14.dist-info}/WHEEL +0 -0
- {port_ocean-0.12.2.dev12.dist-info → port_ocean-0.12.2.dev14.dist-info}/entry_points.txt +0 -0
port_ocean/utils/repeat.py
CHANGED
|
@@ -5,6 +5,7 @@ from traceback import format_exception
|
|
|
5
5
|
from typing import Callable, Coroutine, Any
|
|
6
6
|
|
|
7
7
|
from loguru import logger
|
|
8
|
+
from starlette.concurrency import run_in_threadpool
|
|
8
9
|
|
|
9
10
|
from port_ocean.utils.signal import signal_handler
|
|
10
11
|
|
|
@@ -15,10 +16,6 @@ NoArgsNoReturnDecorator = Callable[
|
|
|
15
16
|
]
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
def run_in_threadpool(param):
|
|
19
|
-
pass
|
|
20
|
-
|
|
21
|
-
|
|
22
19
|
def repeat_every(
|
|
23
20
|
seconds: float,
|
|
24
21
|
wait_first: bool = False,
|
|
@@ -80,7 +77,7 @@ def repeat_every(
|
|
|
80
77
|
logger.error(formatted_exception)
|
|
81
78
|
if raise_exceptions:
|
|
82
79
|
raise exc
|
|
83
|
-
|
|
80
|
+
await asyncio.sleep(seconds)
|
|
84
81
|
|
|
85
82
|
ensure_future(loop())
|
|
86
83
|
|
|
@@ -135,12 +135,12 @@ port_ocean/utils/async_iterators.py,sha256=iw3cUHxfQm3zUSPdw2FmSXDU8E1Ppnys4TGhs
|
|
|
135
135
|
port_ocean/utils/cache.py,sha256=3KItZDE2yVrbVDr-hoM8lNna8s2dlpxhP4ICdLjH4LQ,2231
|
|
136
136
|
port_ocean/utils/misc.py,sha256=0q2cJ5psqxn_5u_56pT7vOVQ3shDM02iC1lzyWQ_zl0,2098
|
|
137
137
|
port_ocean/utils/queue_utils.py,sha256=KWWl8YVnG-glcfIHhM6nefY-2sou_C6DVP1VynQwzB4,2762
|
|
138
|
-
port_ocean/utils/repeat.py,sha256=
|
|
138
|
+
port_ocean/utils/repeat.py,sha256=8PbKRkhynjGx7RQoy68pmkDMYBXYT2wcKiIRp7g0-YQ,3416
|
|
139
139
|
port_ocean/utils/signal.py,sha256=z9iJBw8aAfxGKwlSHjhEq1g8HbPkCaYpVMyvtisrjZU,1365
|
|
140
140
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
141
141
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
142
|
-
port_ocean-0.12.2.
|
|
143
|
-
port_ocean-0.12.2.
|
|
144
|
-
port_ocean-0.12.2.
|
|
145
|
-
port_ocean-0.12.2.
|
|
146
|
-
port_ocean-0.12.2.
|
|
142
|
+
port_ocean-0.12.2.dev14.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
143
|
+
port_ocean-0.12.2.dev14.dist-info/METADATA,sha256=hTMYP9iCJg4QUR3ddwN0cD0Rxvj8nehfzd5rk-oNn7Q,6713
|
|
144
|
+
port_ocean-0.12.2.dev14.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
145
|
+
port_ocean-0.12.2.dev14.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
146
|
+
port_ocean-0.12.2.dev14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|