arpakitlib 1.8.191__py3-none-any.whl → 1.8.192__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/arpakitlib_project_template_info.json +1 -1
- arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py +7 -7
- {arpakitlib-1.8.191.dist-info → arpakitlib-1.8.192.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.191.dist-info → arpakitlib-1.8.192.dist-info}/RECORD +7 -7
- {arpakitlib-1.8.191.dist-info → arpakitlib-1.8.192.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.191.dist-info → arpakitlib-1.8.192.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.191.dist-info → arpakitlib-1.8.192.dist-info}/entry_points.txt +0 -0
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py
CHANGED
@@ -2,7 +2,7 @@ from datetime import timedelta
|
|
2
2
|
from typing import Any, Callable
|
3
3
|
|
4
4
|
from pydantic import ConfigDict
|
5
|
-
from pydantic
|
5
|
+
from pydantic import BaseModel
|
6
6
|
|
7
7
|
from project.operation_execution.util import every_timedelta_is_time_func
|
8
8
|
from project.sqlalchemy_db_.sqlalchemy_model import OperationDBM
|
@@ -17,25 +17,25 @@ class ScheduledOperation(BaseModel):
|
|
17
17
|
timeout_after_creation: timedelta | None = None
|
18
18
|
|
19
19
|
|
20
|
-
|
20
|
+
healthcheck_every_0_01_seconds_so = ScheduledOperation(
|
21
21
|
type=OperationDBM.Types.healthcheck_,
|
22
22
|
input_data={"healthcheck": "healthcheck"},
|
23
23
|
is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=0.01))
|
24
24
|
)
|
25
25
|
|
26
|
-
|
26
|
+
healthcheck_every_3_seconds_so = ScheduledOperation(
|
27
27
|
type=OperationDBM.Types.healthcheck_,
|
28
28
|
input_data={"healthcheck": "healthcheck"},
|
29
29
|
is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=3))
|
30
30
|
)
|
31
31
|
|
32
|
-
|
32
|
+
healthcheck_every_24_hours_so = ScheduledOperation(
|
33
33
|
type=OperationDBM.Types.healthcheck_,
|
34
34
|
input_data={"healthcheck": "healthcheck"},
|
35
35
|
is_time_func=every_timedelta_is_time_func(td=timedelta(hours=24))
|
36
36
|
)
|
37
37
|
|
38
|
-
|
38
|
+
raise_fake_error_every_3_seconds_so = ScheduledOperation(
|
39
39
|
type=OperationDBM.Types.raise_fake_error_,
|
40
40
|
input_data={"raise_fake_error": "raise_fake_error"},
|
41
41
|
is_time_func=every_timedelta_is_time_func(td=timedelta(seconds=3))
|
@@ -44,6 +44,6 @@ raise_fake_error_every_3_seconds_scheduled_operation = ScheduledOperation(
|
|
44
44
|
|
45
45
|
def get_scheduled_operations() -> list[ScheduledOperation]:
|
46
46
|
res = []
|
47
|
-
res.append(
|
48
|
-
res.append(
|
47
|
+
res.append(healthcheck_every_3_seconds_so)
|
48
|
+
res.append(healthcheck_every_24_hours_so)
|
49
49
|
return res
|
@@ -8,7 +8,7 @@ arpakitlib/_arpakit_project_template_v_5/alembic/env.py,sha256=Qesmnj5A2kB-Doeuf
|
|
8
8
|
arpakitlib/_arpakit_project_template_v_5/alembic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
9
9
|
arpakitlib/_arpakit_project_template_v_5/alembic/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
arpakitlib/_arpakit_project_template_v_5/alembic.ini,sha256=8fuyeEvGBiPGbxEFy8ISBV3xX_fgVmuhEGpB10_B5Uo,3733
|
11
|
-
arpakitlib/_arpakit_project_template_v_5/arpakitlib_project_template_info.json,sha256=
|
11
|
+
arpakitlib/_arpakit_project_template_v_5/arpakitlib_project_template_info.json,sha256=keN0tdh9_6aLOtkeJVCIYHkLvF4tANK-0kYtV_s6Nic,98
|
12
12
|
arpakitlib/_arpakit_project_template_v_5/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
arpakitlib/_arpakit_project_template_v_5/command/alembic_history.sh,sha256=OMnDNtHIksGh9iavWnzbtxcudZW4vjdcISsBXvzZSPw,22
|
14
14
|
arpakitlib/_arpakit_project_template_v_5/command/alembic_revision_autogenerate.sh,sha256=yW2i-SBOtBx15Ya0poVQqKkJM5t2JZp06r9AEW-DmGE,46
|
@@ -195,7 +195,7 @@ arpakitlib/_arpakit_project_template_v_5/project/operation_execution/__init__.py
|
|
195
195
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/const.py,sha256=dcvj5C9E2F2KCsGZPBBncQf_EvVJAC1qQgnyD8P4ZEw,6
|
196
196
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/operation_executor_worker.py,sha256=GlJYHw63RONeTfQa6goLoFSlcLp0m7CcAYai-1RtSl0,12130
|
197
197
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operation_creator_worker.py,sha256=WzZC6r0GVSwOpphsxqpRZIdeewK_wzi3YshjLOutYGA,4524
|
198
|
-
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py,sha256=
|
198
|
+
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/scheduled_operations.py,sha256=4Wo-tuC2AbeCYTa5_snMJ2EkXwASCe08vXNnM5feJos,1607
|
199
199
|
arpakitlib/_arpakit_project_template_v_5/project/operation_execution/util.py,sha256=sqHF2AU5Y5IurYHcIH2bu3-JbS1amLO3GD13Zvy8epM,923
|
200
200
|
arpakitlib/_arpakit_project_template_v_5/project/resource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
201
201
|
arpakitlib/_arpakit_project_template_v_5/project/resource/static/1,sha256=IIO7Wvjwlr2-LPSQ7Y8O35hcI6t0_s8zqITDxkYCO8I,11
|
@@ -413,8 +413,8 @@ arpakitlib/ar_sqlalchemy_util.py,sha256=vdhSLtSNVrWejDzR2XEfwNSXgR4QJ-IqaJryEp1a
|
|
413
413
|
arpakitlib/ar_str_util.py,sha256=2lGpnXDf2h1cBZpVf5i1tX_HCv5iBd6IGnrCw4QWWlY,4350
|
414
414
|
arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
|
415
415
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
416
|
-
arpakitlib-1.8.
|
417
|
-
arpakitlib-1.8.
|
418
|
-
arpakitlib-1.8.
|
419
|
-
arpakitlib-1.8.
|
420
|
-
arpakitlib-1.8.
|
416
|
+
arpakitlib-1.8.192.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
417
|
+
arpakitlib-1.8.192.dist-info/METADATA,sha256=dvKU4KYR-HkoI-8kPYac7xphpBm_9x50Qrnnm76YnzM,3741
|
418
|
+
arpakitlib-1.8.192.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
419
|
+
arpakitlib-1.8.192.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
420
|
+
arpakitlib-1.8.192.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|