orionis 0.640.0__py3-none-any.whl → 0.641.0__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.
- orionis/console/base/scheduler.py +1 -13
- orionis/console/core/reactor.py +14 -14
- orionis/foundation/application.py +2 -2
- orionis/metadata/framework.py +1 -1
- {orionis-0.640.0.dist-info → orionis-0.641.0.dist-info}/METADATA +1 -1
- {orionis-0.640.0.dist-info → orionis-0.641.0.dist-info}/RECORD +13 -13
- /orionis/console/commands/{publisher.py → __publisher__.py} +0 -0
- /orionis/console/commands/{workflow.py → __workflow__.py} +0 -0
- /orionis/console/commands/{cache.py → cache_clear.py} +0 -0
- /orionis/console/commands/{log.py → log_clear.py} +0 -0
- {orionis-0.640.0.dist-info → orionis-0.641.0.dist-info}/WHEEL +0 -0
- {orionis-0.640.0.dist-info → orionis-0.641.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.640.0.dist-info → orionis-0.641.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from datetime import datetime
|
|
2
1
|
from orionis.console.contracts.base_scheduler import IBaseScheduler
|
|
3
2
|
from orionis.console.contracts.schedule import ISchedule
|
|
4
3
|
from orionis.console.entities.scheduler_error import SchedulerError
|
|
@@ -9,15 +8,6 @@ from orionis.console.entities.scheduler_started import SchedulerStarted
|
|
|
9
8
|
|
|
10
9
|
class BaseScheduler(IBaseScheduler):
|
|
11
10
|
|
|
12
|
-
# Pause Global Scheduler at a specific time
|
|
13
|
-
PAUSE_AT: datetime = None
|
|
14
|
-
|
|
15
|
-
# Resume Global Scheduler at a specific time
|
|
16
|
-
RESUME_AT: datetime = None
|
|
17
|
-
|
|
18
|
-
# Finalize Global Scheduler at a specific time
|
|
19
|
-
FINALIZE_AT: datetime = None
|
|
20
|
-
|
|
21
11
|
async def tasks(self, schedule: ISchedule):
|
|
22
12
|
"""
|
|
23
13
|
Defines and registers scheduled tasks for the application.
|
|
@@ -41,9 +31,7 @@ class BaseScheduler(IBaseScheduler):
|
|
|
41
31
|
The method should define the tasks, their execution intervals, and any additional
|
|
42
32
|
properties or constraints required for the tasks.
|
|
43
33
|
"""
|
|
44
|
-
|
|
45
|
-
# Raise an error to enforce implementation in subclasses
|
|
46
|
-
raise NotImplementedError("Subclasses must implement the tasks method.")
|
|
34
|
+
pass
|
|
47
35
|
|
|
48
36
|
async def onStarted(self, event: SchedulerStarted, schedule: ISchedule):
|
|
49
37
|
"""
|
orionis/console/core/reactor.py
CHANGED
|
@@ -280,29 +280,29 @@ class Reactor(IReactor):
|
|
|
280
280
|
"""
|
|
281
281
|
|
|
282
282
|
# Import the core command class for version
|
|
283
|
-
from orionis.console.commands.
|
|
283
|
+
from orionis.console.commands.__publisher__ import PublisherCommand
|
|
284
|
+
from orionis.console.commands.__workflow__ import WorkFlowGithubCommand
|
|
285
|
+
from orionis.console.commands.cache_clear import CacheClearCommand
|
|
284
286
|
from orionis.console.commands.help import HelpCommand
|
|
285
|
-
from orionis.console.commands.
|
|
286
|
-
from orionis.console.commands.publisher import PublisherCommand
|
|
287
|
-
from orionis.console.commands.workflow import WorkFlowGithubCommand
|
|
288
|
-
from orionis.console.commands.cache import CacheClearCommand
|
|
289
|
-
from orionis.console.commands.scheduler_work import ScheduleWorkCommand
|
|
290
|
-
from orionis.console.commands.scheduler_list import ScheduleListCommand
|
|
287
|
+
from orionis.console.commands.log_clear import LogClearCommand
|
|
291
288
|
from orionis.console.commands.make_command import MakeCommand
|
|
292
|
-
from orionis.console.commands.
|
|
289
|
+
from orionis.console.commands.scheduler_list import ScheduleListCommand
|
|
290
|
+
from orionis.console.commands.scheduler_work import ScheduleWorkCommand
|
|
291
|
+
from orionis.console.commands.test import TestCommand
|
|
292
|
+
from orionis.console.commands.version import VersionCommand
|
|
293
293
|
|
|
294
294
|
# List of core command classes to load (extend this list as more core commands are added)
|
|
295
295
|
core_commands = [
|
|
296
|
-
VersionCommand,
|
|
297
|
-
HelpCommand,
|
|
298
|
-
TestCommand,
|
|
299
296
|
PublisherCommand,
|
|
300
297
|
WorkFlowGithubCommand,
|
|
301
298
|
CacheClearCommand,
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
HelpCommand,
|
|
300
|
+
LogClearCommand,
|
|
304
301
|
MakeCommand,
|
|
305
|
-
|
|
302
|
+
ScheduleListCommand,
|
|
303
|
+
ScheduleWorkCommand,
|
|
304
|
+
TestCommand,
|
|
305
|
+
VersionCommand
|
|
306
306
|
]
|
|
307
307
|
|
|
308
308
|
# Iterate through the core command classes and register them
|
|
@@ -142,10 +142,10 @@ class Application(Container, IApplication):
|
|
|
142
142
|
self.__runtime_path_config: dict = {}
|
|
143
143
|
|
|
144
144
|
# Property to store the scheduler instance
|
|
145
|
-
self.__scheduler:
|
|
145
|
+
self.__scheduler: IBaseScheduler = None
|
|
146
146
|
|
|
147
147
|
# Property to store the exception handler class
|
|
148
|
-
self.__exception_handler: Type[
|
|
148
|
+
self.__exception_handler: Type[IBaseExceptionHandler] = None
|
|
149
149
|
|
|
150
150
|
# Flag to prevent re-initialization
|
|
151
151
|
self.__initialized = True
|
orionis/metadata/framework.py
CHANGED
|
@@ -5,19 +5,19 @@ orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
5
5
|
orionis/console/args/argument.py,sha256=QkdTrIYfG6CqDEMVBlQvNzRVHlBAcJOinVjq5Lz-wl8,20331
|
|
6
6
|
orionis/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
orionis/console/base/command.py,sha256=tAO_EVy1aNWneNSKYYMAf9yDTfbvHAqSJnZZ6pOR4tE,9318
|
|
8
|
-
orionis/console/base/scheduler.py,sha256=
|
|
8
|
+
orionis/console/base/scheduler.py,sha256=JoZdtyrVJiNzBoVEWUovHscqBxqw_fPPwaENIQc4Zp4,7644
|
|
9
9
|
orionis/console/base/scheduler_event_listener.py,sha256=X2mZBAYLBCtLOH7QSrCEaLeJ5m8Hq5UtGxaWRRvWbfo,4421
|
|
10
10
|
orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
orionis/console/commands/
|
|
11
|
+
orionis/console/commands/__publisher__.py,sha256=xVFMVU4xrhmLK_ztou5UWJ2ONpzPc1fjjJufxnetej4,21371
|
|
12
|
+
orionis/console/commands/__workflow__.py,sha256=16fpHjkMmdVI9cCemADLqNz3U50oaLoVTapGdbigrYU,3095
|
|
13
|
+
orionis/console/commands/cache_clear.py,sha256=iwdMdRLw8BAGkR-OcBB3JD9pOidC3jWT-W-DUrENywQ,3048
|
|
12
14
|
orionis/console/commands/help.py,sha256=VFIn3UqQm4pxwjfSQohVwKNpc7F-6XRcwSZQwDSLEaU,3739
|
|
13
|
-
orionis/console/commands/
|
|
15
|
+
orionis/console/commands/log_clear.py,sha256=qTiUhWMbEZFbWaxk4pVdWujkfq0TebiBUflsNDXoYJs,4060
|
|
14
16
|
orionis/console/commands/make_command.py,sha256=EbTicRHGf7uZ78MSDwZpQMDTB0MvwATclWNTK4vbkZ4,6076
|
|
15
|
-
orionis/console/commands/publisher.py,sha256=xVFMVU4xrhmLK_ztou5UWJ2ONpzPc1fjjJufxnetej4,21371
|
|
16
17
|
orionis/console/commands/scheduler_list.py,sha256=Wtjy73fpcjI6GGsJg6BHWVUXItzHbY1QLEhryXpCLcs,4770
|
|
17
18
|
orionis/console/commands/scheduler_work.py,sha256=iPTgP7gOmTPr__TltYQWiqbDXbCP2njuO_2fCzwmMuc,5778
|
|
18
19
|
orionis/console/commands/test.py,sha256=LXtl918TmYhg0sjBiCfbsvaXUmCLqwCXTazmy7AJhlE,2445
|
|
19
20
|
orionis/console/commands/version.py,sha256=0EEFOzzUMzH7DOULKmkHkDLt4D8k938FIkkV3iBQ-t8,3694
|
|
20
|
-
orionis/console/commands/workflow.py,sha256=16fpHjkMmdVI9cCemADLqNz3U50oaLoVTapGdbigrYU,3095
|
|
21
21
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
orionis/console/contracts/base_command.py,sha256=UlDN41Ts0ulxM-B2kgeKNr9_gNv_0LCth_pon1os-8U,7617
|
|
23
23
|
orionis/console/contracts/base_scheduler.py,sha256=RSxEW57MoMU3pXfliIrQw9WuMk95p-xHXi1yACp1qsU,7728
|
|
@@ -33,7 +33,7 @@ orionis/console/contracts/reactor.py,sha256=iT6ShoCutAWEeJzOf_PK7CGXi9TgrOD5tewH
|
|
|
33
33
|
orionis/console/contracts/schedule.py,sha256=xtXgp4BPhvhg3YSM4mrIdbyoBdr4OJBi1gBM_kJN5UQ,13694
|
|
34
34
|
orionis/console/contracts/schedule_event_listener.py,sha256=h06qsBxuEMD3KLSyu0JXdUDHlQW19BX9lA09Qrh2QXg,3818
|
|
35
35
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
-
orionis/console/core/reactor.py,sha256=
|
|
36
|
+
orionis/console/core/reactor.py,sha256=1pog0n0T-CKzFZlGO_2E0cwNv1dprPVFnxsLzUZZE3c,43930
|
|
37
37
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
orionis/console/dumper/debug.py,sha256=p8uflSXeDJDrVM9mZY4JMYEus73Z6TsLnQQtgP0QUak,22427
|
|
39
39
|
orionis/console/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -104,7 +104,7 @@ orionis/failure/contracts/handler.py,sha256=AeJfkJfD3hTkOIYAtADq6GnQfq-qWgDfUc7b
|
|
|
104
104
|
orionis/failure/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
105
105
|
orionis/failure/entities/throwable.py,sha256=1zD-awcuAyEtlR-L7V7ZIfPSF4GpXkf-neL5sXul7dc,1240
|
|
106
106
|
orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
107
|
-
orionis/foundation/application.py,sha256=
|
|
107
|
+
orionis/foundation/application.py,sha256=Xe8lA5dXLN9gTYtpcfK_09bu1oYOsIdzs16opErJlaE,94168
|
|
108
108
|
orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
109
109
|
orionis/foundation/config/startup.py,sha256=btqvryeIf9lLNQ9fBff7bJMrfraEY8qrWi4y_5YAR0Q,9681
|
|
110
110
|
orionis/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -217,7 +217,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
|
|
|
217
217
|
orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
|
|
218
218
|
orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
|
|
219
219
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
220
|
-
orionis/metadata/framework.py,sha256=
|
|
220
|
+
orionis/metadata/framework.py,sha256=9JycIg_bqAbqiI4dgYCq__3Cn982ZTvVjr8asLkzHdA,4089
|
|
221
221
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
222
222
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
223
223
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -404,8 +404,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
|
|
|
404
404
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
405
405
|
orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
|
|
406
406
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
|
407
|
-
orionis-0.
|
|
408
|
-
orionis-0.
|
|
409
|
-
orionis-0.
|
|
410
|
-
orionis-0.
|
|
411
|
-
orionis-0.
|
|
407
|
+
orionis-0.641.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
408
|
+
orionis-0.641.0.dist-info/METADATA,sha256=FCsNt3V9b6ZZscnE-c54RK7AT0iRM_rRp7gJakViS3A,4772
|
|
409
|
+
orionis-0.641.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
410
|
+
orionis-0.641.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
|
411
|
+
orionis-0.641.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|