OpenOrchestrator 1.3.0__py3-none-any.whl → 1.3.1__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.
- OpenOrchestrator/database/db_util.py +2 -2
- OpenOrchestrator/orchestrator/popups/trigger_popup.py +5 -5
- {OpenOrchestrator-1.3.0.dist-info → openorchestrator-1.3.1.dist-info}/METADATA +8 -8
- {OpenOrchestrator-1.3.0.dist-info → openorchestrator-1.3.1.dist-info}/RECORD +7 -7
- {OpenOrchestrator-1.3.0.dist-info → openorchestrator-1.3.1.dist-info}/WHEEL +1 -1
- {OpenOrchestrator-1.3.0.dist-info → openorchestrator-1.3.1.dist-info}/LICENSE +0 -0
- {OpenOrchestrator-1.3.0.dist-info → openorchestrator-1.3.1.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,7 @@ from datetime import datetime
|
|
4
4
|
from typing import TypeVar, ParamSpec
|
5
5
|
from uuid import UUID
|
6
6
|
|
7
|
-
from
|
7
|
+
from cronsim import CronSim
|
8
8
|
from sqlalchemy import Engine, create_engine, select, insert, desc
|
9
9
|
from sqlalchemy import exc as alc_exc
|
10
10
|
from sqlalchemy import func as alc_func
|
@@ -619,7 +619,7 @@ def begin_scheduled_trigger(trigger_id: UUID | str) -> bool:
|
|
619
619
|
|
620
620
|
trigger.process_status = TriggerStatus.RUNNING
|
621
621
|
trigger.last_run = datetime.now()
|
622
|
-
trigger.next_run =
|
622
|
+
trigger.next_run = next(CronSim(trigger.cron_expr, datetime.now()))
|
623
623
|
|
624
624
|
session.commit()
|
625
625
|
return True
|
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING
|
|
5
5
|
from datetime import datetime
|
6
6
|
|
7
7
|
from nicegui import ui
|
8
|
-
from
|
8
|
+
from cronsim import CronSim, CronSimError
|
9
9
|
|
10
10
|
from OpenOrchestrator.orchestrator.datetime_input import DatetimeInput
|
11
11
|
from OpenOrchestrator.database import db_util
|
@@ -75,9 +75,9 @@ class TriggerPopup():
|
|
75
75
|
|
76
76
|
def validate_cron(value: str):
|
77
77
|
try:
|
78
|
-
|
78
|
+
CronSim(value, datetime.now())
|
79
79
|
return True
|
80
|
-
except
|
80
|
+
except CronSimError:
|
81
81
|
return False
|
82
82
|
|
83
83
|
self.cron_input.validation = {"Invalid cron expression": validate_cron}
|
@@ -118,8 +118,8 @@ class TriggerPopup():
|
|
118
118
|
|
119
119
|
def _cron_change(self):
|
120
120
|
if self.cron_input.validate():
|
121
|
-
cron_iter =
|
122
|
-
self.time_input.set_datetime(
|
121
|
+
cron_iter = CronSim(self.cron_input.value, datetime.now())
|
122
|
+
self.time_input.set_datetime(next(cron_iter))
|
123
123
|
|
124
124
|
async def _validate(self) -> bool:
|
125
125
|
result = True
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: OpenOrchestrator
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.1
|
4
4
|
Summary: A package containing OpenOrchestrator and OpenOrchestrator Scheduler
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/OpenOrchestrator
|
@@ -11,13 +11,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
11
11
|
Requires-Python: >=3.11
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: cryptography
|
15
|
-
Requires-Dist:
|
16
|
-
Requires-Dist: SQLAlchemy
|
17
|
-
Requires-Dist: pyodbc
|
18
|
-
Requires-Dist: nicegui
|
14
|
+
Requires-Dist: cryptography>=41.0.3
|
15
|
+
Requires-Dist: cronsim>=2.6
|
16
|
+
Requires-Dist: SQLAlchemy>=2.0.22
|
17
|
+
Requires-Dist: pyodbc>=4.0.39
|
18
|
+
Requires-Dist: nicegui==1.4.12
|
19
19
|
Provides-Extra: dev
|
20
|
-
Requires-Dist: pylint
|
20
|
+
Requires-Dist: pylint; extra == "dev"
|
21
21
|
|
22
22
|
# OpenOrchestrator
|
23
23
|
|
@@ -6,7 +6,7 @@ OpenOrchestrator/common/crypto_util.py,sha256=VJ7fgxyjrW-bGQmsGVKXLUk98pcZGXG4fa
|
|
6
6
|
OpenOrchestrator/common/datetime_util.py,sha256=4I70tz6WZGZ3xdxodJhdHJID14Y9myJTShFArOWCSpA,534
|
7
7
|
OpenOrchestrator/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
OpenOrchestrator/database/constants.py,sha256=ik6lY6IR8EOyKEg-N70X-0U654i3nFb3u-XWhqbUbJU,2404
|
9
|
-
OpenOrchestrator/database/db_util.py,sha256=
|
9
|
+
OpenOrchestrator/database/db_util.py,sha256=YI6QU61LVm-WkMtLlHPDZMFkXsApRiEtD7jShDN9J8E,28736
|
10
10
|
OpenOrchestrator/database/logs.py,sha256=h2BztjmDRhj8TACYN3LK5c9hIqn5xCs9m_LDUdYYHEk,1623
|
11
11
|
OpenOrchestrator/database/queues.py,sha256=GYrTktg-RiHef-nFAXGAR9Ne0MIiRipxkAXv-CGc0_Q,2292
|
12
12
|
OpenOrchestrator/database/triggers.py,sha256=cO3-dq5-Ib4P_F6p5EgU02XgaRaiIgs6CKqsY0SnDBk,4028
|
@@ -18,7 +18,7 @@ OpenOrchestrator/orchestrator/popups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
|
|
18
18
|
OpenOrchestrator/orchestrator/popups/constant_popup.py,sha256=58Yhyz7dW0I_1Vly0U54NEpwWHhEmwLr34z2nUpQAgs,3435
|
19
19
|
OpenOrchestrator/orchestrator/popups/credential_popup.py,sha256=4uY4mhD-EGOnOCu9GN4JPecoCbKj067kdSs1kMutpv8,3909
|
20
20
|
OpenOrchestrator/orchestrator/popups/generic_popups.py,sha256=wV5isJrwFGUBpDhDpuOzzURwU4NTp4l5mzMDg-KebKw,1061
|
21
|
-
OpenOrchestrator/orchestrator/popups/trigger_popup.py,sha256=
|
21
|
+
OpenOrchestrator/orchestrator/popups/trigger_popup.py,sha256=4cnZxzXieb473H4zqH37TvTsXyj0Bk2YwPURIcrVL_w,10034
|
22
22
|
OpenOrchestrator/orchestrator/tabs/constants_tab.py,sha256=dSnfWbZeCndsd8vzVEyRJFEyEUPnP-RAY2YwCCi7Omw,2485
|
23
23
|
OpenOrchestrator/orchestrator/tabs/logging_tab.py,sha256=kLl2QplqGEkvWwmXlr3wfZEFf-XXqctOeQN8hcpMBQw,3589
|
24
24
|
OpenOrchestrator/orchestrator/tabs/queue_tab.py,sha256=ZjN_rWUZ99alunztxEMMI-OYIYvzMlulwmzuMoO2wlU,5820
|
@@ -32,8 +32,8 @@ OpenOrchestrator/scheduler/connection_frame.py,sha256=Ufltek3jyX0Fm20A5JxSGQPuft
|
|
32
32
|
OpenOrchestrator/scheduler/run_tab.py,sha256=QP-hoZEJAI5A-T7kV1lFCftpTm_e_R3T8I2Fg9BHxnA,5779
|
33
33
|
OpenOrchestrator/scheduler/runner.py,sha256=5F9eGlo8AsUx8WgeGxCe4k33NBPUzpsqTnVRS7_NaGQ,8348
|
34
34
|
OpenOrchestrator/scheduler/settings_tab.py,sha256=AQxt5HxPn4sLfj-6GwyAQ8ffJ35D0PHLBVoi8W3tu2A,613
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
openorchestrator-1.3.1.dist-info/LICENSE,sha256=4-Kjm-gkbiOLCBYMzsVJZEepdsm2vk8QesNOASvi9mg,1068
|
36
|
+
openorchestrator-1.3.1.dist-info/METADATA,sha256=bUdhPWKlsWDPn9DBm1ekvZMJ-QPly4hDrPNB2OIBdX8,1929
|
37
|
+
openorchestrator-1.3.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
38
|
+
openorchestrator-1.3.1.dist-info/top_level.txt,sha256=2btKMQESHuRC_ICbCjHTHH_-us2G7CyeskeaSTTL07Y,17
|
39
|
+
openorchestrator-1.3.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|