orionis 0.489.0__py3-none-any.whl → 0.490.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/commands/scheduler_list.py +8 -2
- orionis/console/commands/scheduler_work.py +8 -2
- orionis/console/output/console.py +2 -1
- orionis/failure/catch.py +3 -1
- orionis/metadata/framework.py +1 -1
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/METADATA +1 -1
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/RECORD +11 -11
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/WHEEL +0 -0
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/top_level.txt +0 -0
- {orionis-0.489.0.dist-info → orionis-0.490.0.dist-info}/zip-safe +0 -0
|
@@ -4,7 +4,9 @@ from rich.table import Table
|
|
|
4
4
|
from orionis.console.base.command import BaseCommand
|
|
5
5
|
from orionis.console.contracts.schedule import ISchedule
|
|
6
6
|
from orionis.console.exceptions import CLIOrionisRuntimeError
|
|
7
|
+
from orionis.container.exceptions.exception import OrionisContainerException
|
|
7
8
|
from orionis.foundation.contracts.application import IApplication
|
|
9
|
+
from orionis.foundation.exceptions.runtime import OrionisRuntimeError
|
|
8
10
|
|
|
9
11
|
class ScheduleListCommand(BaseCommand):
|
|
10
12
|
"""
|
|
@@ -108,9 +110,13 @@ class ScheduleListCommand(BaseCommand):
|
|
|
108
110
|
console.line()
|
|
109
111
|
return True
|
|
110
112
|
|
|
111
|
-
except Exception as
|
|
113
|
+
except Exception as e:
|
|
114
|
+
|
|
115
|
+
# If the exception is already a CLIOrionisRuntimeError or OrionisContainerException, re-raise it
|
|
116
|
+
if isinstance(e, (OrionisRuntimeError, OrionisContainerException)):
|
|
117
|
+
raise
|
|
112
118
|
|
|
113
119
|
# Catch any unexpected exceptions and raise as a CLIOrionisRuntimeError
|
|
114
120
|
raise CLIOrionisRuntimeError(
|
|
115
|
-
f"An unexpected error occurred while listing the scheduled jobs: {
|
|
121
|
+
f"An unexpected error occurred while listing the scheduled jobs: {e}"
|
|
116
122
|
)
|
|
@@ -5,7 +5,9 @@ from rich.text import Text
|
|
|
5
5
|
from orionis.console.base.command import BaseCommand
|
|
6
6
|
from orionis.console.contracts.schedule import ISchedule
|
|
7
7
|
from orionis.console.exceptions import CLIOrionisRuntimeError
|
|
8
|
+
from orionis.container.exceptions.exception import OrionisContainerException
|
|
8
9
|
from orionis.foundation.contracts.application import IApplication
|
|
10
|
+
from orionis.foundation.exceptions.runtime import OrionisRuntimeError
|
|
9
11
|
|
|
10
12
|
class ScheduleWorkCommand(BaseCommand):
|
|
11
13
|
"""
|
|
@@ -101,9 +103,13 @@ class ScheduleWorkCommand(BaseCommand):
|
|
|
101
103
|
await schedule_serice.start()
|
|
102
104
|
return True
|
|
103
105
|
|
|
104
|
-
except Exception as
|
|
106
|
+
except Exception as e:
|
|
107
|
+
|
|
108
|
+
# If the exception is already a CLIOrionisRuntimeError or OrionisContainerException, re-raise it
|
|
109
|
+
if isinstance(e, (OrionisRuntimeError, OrionisContainerException)):
|
|
110
|
+
raise
|
|
105
111
|
|
|
106
112
|
# Raise any unexpected exceptions as CLIOrionisRuntimeError
|
|
107
113
|
raise CLIOrionisRuntimeError(
|
|
108
|
-
f"An unexpected error occurred while starting the scheduler worker: {
|
|
114
|
+
f"An unexpected error occurred while starting the scheduler worker: {e}"
|
|
109
115
|
)
|
|
@@ -516,7 +516,8 @@ class Console(IConsole):
|
|
|
516
516
|
|
|
517
517
|
rc = RichConsole()
|
|
518
518
|
rc.print("[bold red]❌ Exception caught in method[/]")
|
|
519
|
-
|
|
519
|
+
tb = Traceback.from_exception(type(e), e, e.__traceback__, max_frames=1)
|
|
520
|
+
rc.print(tb)
|
|
520
521
|
|
|
521
522
|
def exitSuccess(self, message: str = None) -> None:
|
|
522
523
|
"""
|
orionis/failure/catch.py
CHANGED
|
@@ -145,4 +145,6 @@ class Catch(ICatch):
|
|
|
145
145
|
self.logger.error(f"CLI Error: {throwable.message} (Args: {args})")
|
|
146
146
|
|
|
147
147
|
# Output the exception traceback to the console
|
|
148
|
-
self.console.
|
|
148
|
+
self.console.newLine()
|
|
149
|
+
self.console.exception(exception)
|
|
150
|
+
self.console.newLine()
|
orionis/metadata/framework.py
CHANGED
|
@@ -16,8 +16,8 @@ orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
16
16
|
orionis/console/commands/cache.py,sha256=8DsYoRzSBLn0P9qkGVItRbo0R6snWBDBg0_Xa7tmVhs,2322
|
|
17
17
|
orionis/console/commands/help.py,sha256=zfSw0pYaOnFN-_Ozdn4veBQDYMgSSDY10nPDCi-7tTY,3199
|
|
18
18
|
orionis/console/commands/publisher.py,sha256=FUg-EUzK7LLXsla10ZUZro8V0Z5S-KjmsaSdRHSSGbA,21381
|
|
19
|
-
orionis/console/commands/scheduler_list.py,sha256=
|
|
20
|
-
orionis/console/commands/scheduler_work.py,sha256=
|
|
19
|
+
orionis/console/commands/scheduler_list.py,sha256=OglphcIhdtWLkUccsINZt7AdWJtu9CE0awA7NkuXXvI,5179
|
|
20
|
+
orionis/console/commands/scheduler_work.py,sha256=EgoypatVwzpHR-Sm1C4vC2g9EMqNBV1Wd1DHMJtHCrc,4678
|
|
21
21
|
orionis/console/commands/test.py,sha256=-EmQwFwMBuby3OI9HwqMIwuJzd2CGbWbOqmwrR25sOE,2402
|
|
22
22
|
orionis/console/commands/version.py,sha256=SUuNDJ40f2uq69OQUmPQXJKaa9Bm_iVRDPmBd7zc1Yc,3658
|
|
23
23
|
orionis/console/commands/workflow.py,sha256=NYOmjTSvm2o6AE4h9LSTZMFSYPQreNmEJtronyOxaYk,2451
|
|
@@ -49,7 +49,7 @@ orionis/console/exceptions/cli_orionis_value_error.py,sha256=RQP0HRwxDG8hxFOT1kU
|
|
|
49
49
|
orionis/console/exceptions/cli_runtime_error.py,sha256=DaCDGu6mXBk1LIzc7cwRROw1mePAigPNASjNZHhUSBE,1154
|
|
50
50
|
orionis/console/exceptions/cli_schedule_exception.py,sha256=IBbXb_5zi02pyo1laHdjGn6FYZK7WWRp4j2fkZOCT6I,1161
|
|
51
51
|
orionis/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
|
-
orionis/console/output/console.py,sha256=
|
|
52
|
+
orionis/console/output/console.py,sha256=5FTlnbRZqhdXwhkoz9SEGlKHUeNAg4wAPPZ4qvrrpeg,17960
|
|
53
53
|
orionis/console/output/executor.py,sha256=9A8lCSU9DEVKhMsQLwBhFKW44Mz7KP-ig-o-4Vm-EcU,7328
|
|
54
54
|
orionis/console/output/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
orionis/console/output/contracts/console.py,sha256=phaQhCLWa81MLzB5ydOSaUfEIdDq7fOjvym8Rmi-arc,11908
|
|
@@ -93,7 +93,7 @@ orionis/container/validators/is_subclass.py,sha256=4sBaGLoRs8nUhuWjlP0VJqyTwVHYq
|
|
|
93
93
|
orionis/container/validators/is_valid_alias.py,sha256=4uAYcq8xov7jZbXnpKpjNkxcZtlTNnL5RRctVPMwJes,1424
|
|
94
94
|
orionis/container/validators/lifetime.py,sha256=IQ43fDNrxYHMlZH2zlYDJnlkLO_eS4U7Fs3UJgQBidI,1844
|
|
95
95
|
orionis/failure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
|
-
orionis/failure/catch.py,sha256=
|
|
96
|
+
orionis/failure/catch.py,sha256=7pCnsuZbn1guLvpI0HzJbB6NL2yQcM9w5qiRwdzUVwA,5624
|
|
97
97
|
orionis/failure/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
orionis/failure/contracts/catch.py,sha256=sdtjhq6ToXrtdKR0Bw9YYUqofvm-FGULPnz4dZVddWQ,2844
|
|
99
99
|
orionis/failure/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -214,7 +214,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
214
214
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
215
215
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
216
216
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
217
|
-
orionis/metadata/framework.py,sha256=
|
|
217
|
+
orionis/metadata/framework.py,sha256=PavAxvH_qjp4eIP7zr_1Q2dwM4DhqjHxviy7oOlGPpo,4109
|
|
218
218
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
219
219
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
220
220
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -388,7 +388,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
388
388
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
389
389
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
390
390
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
391
|
-
orionis-0.
|
|
391
|
+
orionis-0.490.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
392
392
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
393
393
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
394
394
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -535,8 +535,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
535
535
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
536
536
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
537
537
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
538
|
-
orionis-0.
|
|
539
|
-
orionis-0.
|
|
540
|
-
orionis-0.
|
|
541
|
-
orionis-0.
|
|
542
|
-
orionis-0.
|
|
538
|
+
orionis-0.490.0.dist-info/METADATA,sha256=3SiRXUtsN5xqmfmUPbDP6naYme3HOBPJvx04oRcnCtw,4801
|
|
539
|
+
orionis-0.490.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
540
|
+
orionis-0.490.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
541
|
+
orionis-0.490.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
542
|
+
orionis-0.490.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|