arpakitlib 1.8.58__py3-none-any.whl → 1.8.60__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.
- arpakitlib/_arpakit_project_template_v_5/project/operation_execution/util.py +8 -3
- arpakitlib/_arpakit_project_template_v_5/project/resource/templates/healthcheck.txt +1 -0
- {arpakitlib-1.8.58.dist-info → arpakitlib-1.8.60.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.58.dist-info → arpakitlib-1.8.60.dist-info}/RECORD +7 -6
- {arpakitlib-1.8.58.dist-info → arpakitlib-1.8.60.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.58.dist-info → arpakitlib-1.8.60.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.58.dist-info → arpakitlib-1.8.60.dist-info}/entry_points.txt +0 -0
@@ -4,13 +4,18 @@ from typing import Callable
|
|
4
4
|
from arpakitlib.ar_datetime_util import now_utc_dt
|
5
5
|
|
6
6
|
|
7
|
-
def every_timedelta_is_time_func(
|
8
|
-
|
7
|
+
def every_timedelta_is_time_func(
|
8
|
+
*,
|
9
|
+
td: timedelta,
|
10
|
+
now_dt_func: Callable = now_utc_dt,
|
11
|
+
create_first_time: bool = False
|
12
|
+
) -> Callable:
|
13
|
+
last_now_utc_dt = None if create_first_time is not None else now_dt_func()
|
9
14
|
|
10
15
|
def func() -> bool:
|
11
16
|
nonlocal last_now_utc_dt
|
12
17
|
now_dt_func_ = now_dt_func()
|
13
|
-
if (now_dt_func_ - last_now_utc_dt) >= td:
|
18
|
+
if last_now_utc_dt is None or (now_dt_func_ - last_now_utc_dt) >= td:
|
14
19
|
last_now_utc_dt = now_dt_func_
|
15
20
|
return True
|
16
21
|
return False
|
@@ -0,0 +1 @@
|
|
1
|
+
HEALTHCHECK
|
@@ -175,7 +175,7 @@ arpakitlib/_arpakit_project_template_v_5/project/operation_execution/const.py,sh
|
|
175
175
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/operation_executor_worker.py,sha256=pAcvuAVgWc86Vyx3-I21rPvBr9ZxUNaLRoS7VEwkETw,12129
|
176
176
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operation_creator_worker.py,sha256=WzZC6r0GVSwOpphsxqpRZIdeewK_wzi3YshjLOutYGA,4524
|
177
177
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py,sha256=WZyRWzrLvGre_1TjWy0I8V7WfKFZJ0f_8LuZZNrzgy8,1712
|
178
|
-
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/util.py,sha256=
|
178
|
+
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/util.py,sha256=sqHF2AU5Y5IurYHcIH2bu3-JbS1amLO3GD13Zvy8epM,923
|
179
179
|
arpakitlib/_arpakit_project_template_v_5/project/resource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
180
180
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/1,sha256=IIO7Wvjwlr2-LPSQ7Y8O35hcI6t0_s8zqITDxkYCO8I,11
|
181
181
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/healthcheck,sha256=IIO7Wvjwlr2-LPSQ7Y8O35hcI6t0_s8zqITDxkYCO8I,11
|
@@ -201,6 +201,7 @@ arpakitlib/_arpakit_project_template_v_5/project/resource/static/swagger-ui/swag
|
|
201
201
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
|
202
202
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/swagger-ui/swagger-ui.js,sha256=yHKu9z0C2kOO5j9n9D8oQzuBLeEoMGrFcMWQN27V554,339285
|
203
203
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/swagger-ui/swagger-ui.js.map,sha256=jeX-b8zAm2jsTGGCznrc49McbLKSfXspwECPhEAp0Xc,1159444
|
204
|
+
arpakitlib/_arpakit_project_template_v_5/project/resource/templates/healthcheck.txt,sha256=sxSHRe2D3mnWbLKY320QdFehtXS-zAgMQmmu7tAQIG0,11
|
204
205
|
arpakitlib/_arpakit_project_template_v_5/project/sandbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
205
206
|
arpakitlib/_arpakit_project_template_v_5/project/sandbox/sandbox_1.py,sha256=MrrHV0l-u98iWSpretBlf3JhRNpA3euxuR1tIR3JsRI,373
|
206
207
|
arpakitlib/_arpakit_project_template_v_5/project/sandbox/sandbox_2.py,sha256=xKSp7tIBu3Ffp_kgJkwVtdam3BcoFZ44JPVHoRRaP0E,163
|
@@ -371,8 +372,8 @@ arpakitlib/ar_str_util.py,sha256=NisRtt4xwE7qthkkXzL49jvGKMGlvJ4KKcvpQfmRlIw,441
|
|
371
372
|
arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
|
372
373
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
373
374
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=oHNS-2WckQxp7cVqsRne9JgkP9I7RQGBKVKZSMLN8zw,9427
|
374
|
-
arpakitlib-1.8.
|
375
|
-
arpakitlib-1.8.
|
376
|
-
arpakitlib-1.8.
|
377
|
-
arpakitlib-1.8.
|
378
|
-
arpakitlib-1.8.
|
375
|
+
arpakitlib-1.8.60.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
376
|
+
arpakitlib-1.8.60.dist-info/METADATA,sha256=NOyDZmWcPrUJmWF0rqQ87z41-p3zAOvUIUuEJZZcnHM,3475
|
377
|
+
arpakitlib-1.8.60.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
378
|
+
arpakitlib-1.8.60.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
379
|
+
arpakitlib-1.8.60.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|