orionis 0.566.0__py3-none-any.whl → 0.568.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.
Files changed (38) hide show
  1. orionis/console/base/scheduler.py +4 -4
  2. orionis/console/contracts/base_scheduler.py +4 -4
  3. orionis/console/entities/command.py +9 -7
  4. orionis/console/entities/event.py +29 -22
  5. orionis/console/entities/event_job.py +58 -44
  6. orionis/console/entities/scheduler_error.py +19 -6
  7. orionis/console/entities/scheduler_event_data.py +7 -10
  8. orionis/console/entities/scheduler_paused.py +12 -4
  9. orionis/console/entities/scheduler_resumed.py +7 -7
  10. orionis/console/entities/scheduler_shutdown.py +15 -7
  11. orionis/console/entities/scheduler_started.py +15 -7
  12. orionis/console/enums/actions.py +35 -16
  13. orionis/console/enums/listener.py +31 -33
  14. orionis/console/enums/styles.py +61 -64
  15. orionis/console/stub/command.stub +35 -16
  16. orionis/console/stub/listener.stub +0 -18
  17. orionis/metadata/framework.py +1 -1
  18. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/METADATA +1 -1
  19. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/RECORD +22 -38
  20. orionis/console/entities/all_jobs_removed.py +0 -23
  21. orionis/console/entities/executor_added.py +0 -23
  22. orionis/console/entities/executor_removed.py +0 -25
  23. orionis/console/entities/job_added.py +0 -24
  24. orionis/console/entities/job_error.py +0 -35
  25. orionis/console/entities/job_event_data.py +0 -40
  26. orionis/console/entities/job_executed.py +0 -31
  27. orionis/console/entities/job_max_instances.py +0 -27
  28. orionis/console/entities/job_missed.py +0 -25
  29. orionis/console/entities/job_modified.py +0 -22
  30. orionis/console/entities/job_pause.py +0 -22
  31. orionis/console/entities/job_removed.py +0 -22
  32. orionis/console/entities/job_resume.py +0 -25
  33. orionis/console/entities/job_store_added.py +0 -24
  34. orionis/console/entities/job_store_removed.py +0 -25
  35. orionis/console/entities/job_submitted.py +0 -24
  36. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/WHEEL +0 -0
  37. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/licenses/LICENCE +0 -0
  38. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/top_level.txt +0 -0
@@ -2,62 +2,60 @@ from enum import Enum
2
2
 
3
3
  class ListeningEvent(Enum):
4
4
  """
5
- Enumeration of events related to a scheduler and its jobs.
5
+ Enumeration of scheduler and job-related events.
6
6
 
7
- This class defines various events that can occur during the lifecycle of a scheduler
8
- and its associated jobs. These events can be used to monitor and respond to changes
9
- in the scheduler's state or the execution of jobs.
7
+ This enumeration defines the various events that can occur during the lifecycle of a scheduler
8
+ and its associated jobs. These events are intended to be used for monitoring, logging, or
9
+ triggering actions in response to changes in the scheduler's state or job execution.
10
10
 
11
11
  Attributes
12
12
  ----------
13
13
  SCHEDULER_STARTED : str
14
- Event triggered when the scheduler starts.
14
+ Triggered when the scheduler starts.
15
15
  SCHEDULER_SHUTDOWN : str
16
- Event triggered when the scheduler shuts down.
16
+ Triggered when the scheduler shuts down.
17
17
  SCHEDULER_PAUSED : str
18
- Event triggered when the scheduler is paused.
18
+ Triggered when the scheduler is paused.
19
19
  SCHEDULER_RESUMED : str
20
- Event triggered when the scheduler is resumed.
20
+ Triggered when the scheduler is resumed.
21
21
  SCHEDULER_ERROR : str
22
- Event triggered when the scheduler encounters an error.
22
+ Triggered when the scheduler encounters an error.
23
23
  JOB_BEFORE : str
24
- Event triggered before a job is executed.
24
+ Triggered before a job is executed.
25
25
  JOB_AFTER : str
26
- Event triggered after a job is executed.
27
- JOB_ON_SUCCESS : str
28
- Event triggered when a job completes successfully.
26
+ Triggered after a job is executed.
29
27
  JOB_ON_FAILURE : str
30
- Event triggered when a job fails.
28
+ Triggered when a job fails.
31
29
  JOB_ON_MISSED : str
32
- Event triggered when a job is missed.
30
+ Triggered when a job is missed.
33
31
  JOB_ON_MAXINSTANCES : str
34
- Event triggered when a job exceeds its maximum allowed instances.
32
+ Triggered when a job exceeds its maximum allowed instances.
35
33
  JOB_ON_PAUSED : str
36
- Event triggered when a job is paused.
34
+ Triggered when a job is paused.
37
35
  JOB_ON_RESUMED : str
38
- Event triggered when a paused job is resumed.
36
+ Triggered when a paused job is resumed.
39
37
  JOB_ON_REMOVED : str
40
- Event triggered when a job is removed.
38
+ Triggered when a job is removed.
41
39
 
42
40
  Returns
43
41
  -------
44
42
  str
45
- The string representation of the event name.
43
+ The string value representing the event name.
46
44
  """
47
45
 
48
46
  # Scheduler-related events
49
- SCHEDULER_STARTED = "schedulerStarted" # Triggered when the scheduler starts
50
- SCHEDULER_SHUTDOWN = "schedulerShutdown" # Triggered when the scheduler shuts down
51
- SCHEDULER_PAUSED = "schedulerPaused" # Triggered when the scheduler is paused
52
- SCHEDULER_RESUMED = "schedulerResumed" # Triggered when the scheduler is resumed
53
- SCHEDULER_ERROR = "schedulerError" # Triggered when the scheduler encounters an error
47
+ SCHEDULER_STARTED = "schedulerStarted" # Triggered when the scheduler starts
48
+ SCHEDULER_SHUTDOWN = "schedulerShutdown" # Triggered when the scheduler shuts down
49
+ SCHEDULER_PAUSED = "schedulerPaused" # Triggered when the scheduler is paused
50
+ SCHEDULER_RESUMED = "schedulerResumed" # Triggered when the scheduler is resumed
51
+ SCHEDULER_ERROR = "schedulerError" # Triggered when the scheduler encounters an error
54
52
 
55
53
  # Job-related events
56
- JOB_BEFORE = "before" # Triggered before a job is executed
57
- JOB_AFTER = "after" # Triggered after a job is executed
58
- JOB_ON_FAILURE = "onFailure" # Triggered when a job fails
59
- JOB_ON_MISSED = "onMissed" # Triggered when a job is missed
60
- JOB_ON_MAXINSTANCES = "onMaxInstances" # Triggered when a job exceeds its max instances
61
- JOB_ON_PAUSED = "onPaused" # Triggered when a job is paused
62
- JOB_ON_RESUMED = "onResumed" # Triggered when a paused job is resumed
63
- JOB_ON_REMOVED = "onRemoved" # Triggered when a job is removed
54
+ JOB_BEFORE = "before" # Triggered before a job is executed
55
+ JOB_AFTER = "after" # Triggered after a job is executed
56
+ JOB_ON_FAILURE = "onFailure" # Triggered when a job fails
57
+ JOB_ON_MISSED = "onMissed" # Triggered when a job is missed
58
+ JOB_ON_MAXINSTANCES = "onMaxInstances" # Triggered when a job exceeds its max instances
59
+ JOB_ON_PAUSED = "onPaused" # Triggered when a job is paused
60
+ JOB_ON_RESUMED = "onResumed" # Triggered when a paused job is resumed
61
+ JOB_ON_REMOVED = "onRemoved" # Triggered when a job is removed
@@ -2,106 +2,103 @@ from enum import Enum
2
2
 
3
3
  class ANSIColors(Enum):
4
4
  """
5
- ANSI escape codes for text and background styling in the terminal.
5
+ ANSI escape codes for styling text and backgrounds in terminal applications.
6
6
 
7
- This Enum provides color codes for text styling in console applications,
8
- including foreground (TEXT), background (BG), bold (TEXT_BOLD), and
9
- additional text styles like underlining.
7
+ This Enum provides a comprehensive set of ANSI escape codes for coloring and styling
8
+ text output in console applications. It includes codes for foreground (text) colors,
9
+ background colors, bold and underlined styles, as well as additional effects such as
10
+ dim, italic, and magenta. These codes can be used to enhance the readability and
11
+ emphasis of console messages, such as errors, warnings, informational, and success messages.
10
12
 
11
13
  Attributes
12
14
  ----------
13
15
  DEFAULT : str
14
- Resets all colors and styles to default terminal settings.
15
-
16
- Background Colors
17
- -----------------
16
+ ANSI code to reset all colors and styles to the terminal's default.
18
17
  BG_INFO : str
19
- Blue background, typically used for informational messages.
18
+ ANSI code for a blue background, typically used for informational messages.
20
19
  BG_ERROR : str
21
- Red background, typically used for error messages.
20
+ ANSI code for a red background, typically used for error messages.
21
+ BG_FAIL : str
22
+ ANSI code for a specific red background, often used for failure messages.
22
23
  BG_WARNING : str
23
- Yellow background, typically used for warnings.
24
+ ANSI code for a yellow background, typically used for warnings.
24
25
  BG_SUCCESS : str
25
- Green background, typically used for success messages.
26
-
27
- Foreground Colors
28
- -----------------
26
+ ANSI code for a green background, typically used for success messages.
29
27
  TEXT_INFO : str
30
- Blue text, typically used for informational messages.
28
+ ANSI code for blue foreground text, used for informational messages.
31
29
  TEXT_ERROR : str
32
- Bright red text, typically used for errors.
30
+ ANSI code for bright red foreground text, used for errors.
33
31
  TEXT_WARNING : str
34
- Yellow text, typically used for warnings.
32
+ ANSI code for yellow foreground text, used for warnings.
35
33
  TEXT_SUCCESS : str
36
- Green text, typically used for success messages.
34
+ ANSI code for green foreground text, used for success messages.
37
35
  TEXT_WHITE : str
38
- White text, useful for contrast.
36
+ ANSI code for white foreground text, useful for contrast.
39
37
  TEXT_MUTED : str
40
- Gray text, typically used for secondary/muted information.
41
-
42
- Bold Foreground Colors
43
- ----------------------
38
+ ANSI code for gray (muted) foreground text, used for secondary information.
44
39
  TEXT_BOLD_INFO : str
45
- Bold blue text for informational emphasis.
40
+ ANSI code for bold blue foreground text, emphasizing informational messages.
46
41
  TEXT_BOLD_ERROR : str
47
- Bold red text for error emphasis.
42
+ ANSI code for bold red foreground text, emphasizing errors.
48
43
  TEXT_BOLD_WARNING : str
49
- Bold yellow text for warning emphasis.
44
+ ANSI code for bold yellow foreground text, emphasizing warnings.
50
45
  TEXT_BOLD_SUCCESS : str
51
- Bold green text for success emphasis.
46
+ ANSI code for bold green foreground text, emphasizing success messages.
52
47
  TEXT_BOLD_WHITE : str
53
- Bold white text for strong contrast.
48
+ ANSI code for bold white foreground text, for strong contrast.
54
49
  TEXT_BOLD_MUTED : str
55
- Bold gray text for muted yet emphasized information.
56
-
57
- Additional Text Styles
58
- ----------------------
50
+ ANSI code for bold gray (muted) foreground text, for emphasized secondary information.
59
51
  TEXT_BOLD : str
60
- Bold text style.
52
+ ANSI code for bold text style.
61
53
  TEXT_STYLE_UNDERLINE : str
62
- Underlined text for emphasis.
54
+ ANSI code for underlined text style.
63
55
  TEXT_RESET : str
64
- Resets text styles to default settings.
56
+ ANSI code to reset text styles to default settings.
65
57
  CYAN : str
66
- Cyan text for special emphasis.
58
+ ANSI code for cyan foreground text, for special emphasis.
67
59
  DIM : str
68
- Dim text for subtle emphasis.
60
+ ANSI code for dimmed foreground text, for subtle emphasis.
69
61
  MAGENTA : str
70
- Magenta text for special emphasis.
62
+ ANSI code for magenta foreground text, for special emphasis.
71
63
  ITALIC : str
72
- Italic text for special emphasis.
64
+ ANSI code for italicized foreground text, for special emphasis.
65
+
66
+ Returns
67
+ -------
68
+ str
69
+ The ANSI escape code string corresponding to the selected color or style.
73
70
  """
74
71
 
75
72
  DEFAULT = '\033[0m' # Reset all colors and styles
76
73
 
77
74
  # Background Colors
78
- BG_INFO = '\033[44m' # Blue background for INFO
79
- BG_ERROR = '\033[41m' # Red background for ERROR
80
- BG_FAIL = '\033[48;5;166m' # Red background for FAIL
81
- BG_WARNING = '\033[43m' # Yellow background for WARNING
82
- BG_SUCCESS = '\033[42m' # Green background for SUCCESS
75
+ BG_INFO = '\033[44m' # Blue background for informational messages
76
+ BG_ERROR = '\033[41m' # Red background for error messages
77
+ BG_FAIL = '\033[48;5;166m' # Specific red background for failure messages
78
+ BG_WARNING = '\033[43m' # Yellow background for warning messages
79
+ BG_SUCCESS = '\033[42m' # Green background for success messages
83
80
 
84
81
  # Foreground Text Colors
85
- TEXT_INFO = '\033[34m' # Blue for informational messages
86
- TEXT_ERROR = '\033[91m' # Bright red for errors
87
- TEXT_WARNING = '\033[33m' # Yellow for warnings
88
- TEXT_SUCCESS = '\033[32m' # Green for success
89
- TEXT_WHITE = '\033[97m' # White text
90
- TEXT_MUTED = '\033[90m' # Gray (muted) text
82
+ TEXT_INFO = '\033[34m' # Blue text for informational messages
83
+ TEXT_ERROR = '\033[91m' # Bright red text for errors
84
+ TEXT_WARNING = '\033[33m' # Yellow text for warnings
85
+ TEXT_SUCCESS = '\033[32m' # Green text for success messages
86
+ TEXT_WHITE = '\033[97m' # White text for high contrast
87
+ TEXT_MUTED = '\033[90m' # Gray (muted) text for secondary information
91
88
 
92
89
  # Bold Foreground Text Colors
93
- TEXT_BOLD_INFO = '\033[1;34m' # Bold blue for INFO
94
- TEXT_BOLD_ERROR = '\033[1;91m' # Bold red for ERROR
95
- TEXT_BOLD_WARNING = '\033[1;33m' # Bold yellow for WARNING
96
- TEXT_BOLD_SUCCESS = '\033[1;32m' # Bold green for SUCCESS
97
- TEXT_BOLD_WHITE = '\033[1;97m' # Bold white text
98
- TEXT_BOLD_MUTED = '\033[1;90m' # Bold gray (muted) text
90
+ TEXT_BOLD_INFO = '\033[1;34m' # Bold blue text for informational emphasis
91
+ TEXT_BOLD_ERROR = '\033[1;91m' # Bold red text for error emphasis
92
+ TEXT_BOLD_WARNING = '\033[1;33m' # Bold yellow text for warning emphasis
93
+ TEXT_BOLD_SUCCESS = '\033[1;32m' # Bold green text for success emphasis
94
+ TEXT_BOLD_WHITE = '\033[1;97m' # Bold white text for strong contrast
95
+ TEXT_BOLD_MUTED = '\033[1;90m' # Bold gray (muted) text for emphasized secondary info
99
96
 
100
97
  # Additional Text Styles
101
- TEXT_BOLD = "\033[1m" # Bold text
102
- TEXT_STYLE_UNDERLINE = '\033[4m' # Underline text
103
- TEXT_RESET = "\033[0m" # Reset styles
104
- CYAN = "\033[36m" # Cyan text
105
- DIM = "\033[2m" # Dim text
106
- MAGENTA = "\033[35m" # Magenta text
107
- ITALIC = "\033[3m" # Italic text
98
+ TEXT_BOLD = "\033[1m" # Bold text style
99
+ TEXT_STYLE_UNDERLINE = '\033[4m' # Underlined text style
100
+ TEXT_RESET = "\033[0m" # Reset all text styles to default
101
+ CYAN = "\033[36m" # Cyan text for special emphasis
102
+ DIM = "\033[2m" # Dim text for subtle emphasis
103
+ MAGENTA = "\033[35m" # Magenta text for special emphasis
104
+ ITALIC = "\033[3m" # Italic text for special emphasis
@@ -1,23 +1,42 @@
1
- from orionis.console.args.argument import CLIArgument
2
1
  from orionis.console.base.command import BaseCommand
2
+ from orionis.console.args.argument import CLIArgument
3
+ from orionis.console.exceptions.cli_runtime_error import CLIOrionisRuntimeError
3
4
 
4
- class {{command-class}}(BaseCommand):
5
+ class {{class_name}}(BaseCommand):
6
+ """
7
+ Command: {{signature}}
8
+ {{description}}
9
+ """
5
10
 
6
- # Command executed from the CLI, by convention starts with "app:".
7
- signature: str = "{{command-signature}}"
11
+ # Enable timestamps
12
+ timestamps: bool = True
8
13
 
9
- # Brief description of the command.
10
- description: str = "{{command-description}}"
14
+ # Command signature
15
+ signature: str = "{{signature}}"
11
16
 
12
- # List of command arguments and options.
13
- arguments: list[CLIArgument] = [
14
- # Example:
15
- # CLIArgument("--name", type=str, help="Example name", required=True)
17
+ # Command description
18
+ description: str = "{{description}}"
19
+
20
+ # Arguments (edit as needed)
21
+ arguments = [
22
+ CLIArgument(
23
+ flags=["--example", "-e"],
24
+ type=str,
25
+ help="Example argument for {{class_name}}",
26
+ default=None,
27
+ required=False,
28
+ metavar="EXAMPLE",
29
+ dest="example",
30
+ action="store",
31
+ ),
16
32
  ]
17
33
 
18
- async def handle(self) -> None:
19
- """
20
- Main logic of the command.
21
- Override this method to implement the desired behavior.
22
- """
23
- pass
34
+ async def handle(self, *args, **kwargs) -> None:
35
+ try:
36
+ self.textSuccessBold("{{class_name}} executed successfully!")
37
+ example_value = self.argument("example")
38
+ if example_value:
39
+ self.info(f"Received argument: {example_value}")
40
+
41
+ except Exception as e:
42
+ raise CLIOrionisRuntimeError(f"An error occurred: {str(e)}") from e
@@ -40,24 +40,6 @@ class {{name-listener}}(BaseScheduleEventListener):
40
40
  """
41
41
  pass
42
42
 
43
- async def onSuccess(self, event: EventJob, schedule: ISchedule) -> None:
44
- """
45
- Called when a job is successfully executed.
46
-
47
- Parameters
48
- ----------
49
- event : EventJob
50
- The event containing details about the successful job execution.
51
- schedule : ISchedule
52
- The associated schedule instance managing the job.
53
-
54
- Returns
55
- -------
56
- None
57
- This method does not return any value.
58
- """
59
- pass
60
-
61
43
  async def onFailure(self, event: EventJob, schedule: ISchedule) -> None:
62
44
  """
63
45
  Called when a job execution fails.
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.566.0"
8
+ VERSION = "0.568.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.566.0
3
+ Version: 0.568.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -6,7 +6,7 @@ orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
6
6
  orionis/console/args/argument.py,sha256=3Q_4p56qF0VPxK34xX3W4Ln2-Sua9rCHClGOeO96YcY,20355
7
7
  orionis/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  orionis/console/base/command.py,sha256=jdUPc7MoJs9QWo_WEPV0Mb_7f6G563OWFTh7DJeUfM8,6642
9
- orionis/console/base/scheduler.py,sha256=03_nwYbdRXLSoDwVIJ9-ba-fSBwqNaCXvAk9pv3VdFI,8035
9
+ orionis/console/base/scheduler.py,sha256=IKNhpI_lPbI8H3YruD9z7eNdjuqNYceaclx_Hr5BHfY,8065
10
10
  orionis/console/base/scheduler_event_listener.py,sha256=X2mZBAYLBCtLOH7QSrCEaLeJ5m8Hq5UtGxaWRRvWbfo,4421
11
11
  orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  orionis/console/commands/cache.py,sha256=d-J6Qu5Xpp9z0BU4OOb--gp9zWfUZOWm_LEBKIO8k-o,2321
@@ -20,7 +20,7 @@ orionis/console/commands/version.py,sha256=u2f7SetqEX__ufG6c37Ga-CylT4FGvy6wgld6
20
20
  orionis/console/commands/workflow.py,sha256=NYOmjTSvm2o6AE4h9LSTZMFSYPQreNmEJtronyOxaYk,2451
21
21
  orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  orionis/console/contracts/base_command.py,sha256=vmAJD0yMQ5-AD_s9_xCFEAl64sKk65z7U2E196dALQM,5760
23
- orionis/console/contracts/base_scheduler.py,sha256=OW-a_YDDNPrenYT9z8Tv71VjyZ1aSzqzqhTBhTCZhGM,7698
23
+ orionis/console/contracts/base_scheduler.py,sha256=RSxEW57MoMU3pXfliIrQw9WuMk95p-xHXi1yACp1qsU,7728
24
24
  orionis/console/contracts/cli_request.py,sha256=qIV8ig8PG39LYp1acnUD8GYsNRSHncxIxGjO3B3YsUo,6755
25
25
  orionis/console/contracts/command.py,sha256=BOfRGpLRMsRS_a58584uO-MPK1UZGkmefLbFDtbk8ME,2911
26
26
  orionis/console/contracts/console.py,sha256=phaQhCLWa81MLzB5ydOSaUfEIdDq7fOjvym8Rmi-arc,11908
@@ -39,35 +39,19 @@ orionis/console/dumper/debug.py,sha256=p8uflSXeDJDrVM9mZY4JMYEus73Z6TsLnQQtgP0QU
39
39
  orionis/console/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  orionis/console/dynamic/progress_bar.py,sha256=58wne7E_QZb_uN9jjqQ_V28Ci19SVNhCQQ4zzXCiOu0,2872
41
41
  orionis/console/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- orionis/console/entities/all_jobs_removed.py,sha256=4_Foo_CW2mP7iazBJX90I_QJ-Qd_wYGpaJGHXzYDREw,728
43
- orionis/console/entities/command.py,sha256=OXoiE533U1JDbK6Mh-d6jlRmc4CCAPHeNNgBmmJFvpU,1360
44
- orionis/console/entities/event.py,sha256=teDa54mivEZvaRPfF9tP3Wd81jl9znObYhLyQn9yZ0s,3003
45
- orionis/console/entities/event_job.py,sha256=IBpD_FlCgj0WVeUROCzDdL4KUw1PGWQinahBP5MvqPo,2123
46
- orionis/console/entities/executor_added.py,sha256=qtV8dQKYxI_NcpDdOObuCemQy0eAihr0yBIkXewGCv0,702
47
- orionis/console/entities/executor_removed.py,sha256=B_Z_toclI46N5Wjo-ZUgFemxL_5UJcjkDod3kHWR1AQ,738
48
- orionis/console/entities/job_added.py,sha256=pYxXxhU3bEitUV1m_Np6ypzDPcvfTaFBcKwi67hHt_c,813
49
- orionis/console/entities/job_error.py,sha256=8BLyV_csom6MU3zcT7dzqfW4IjBv4BktDaVM-FsvJ5M,1231
50
- orionis/console/entities/job_event_data.py,sha256=pyqeLyel31ZyQwEMW92wvpWNL0Nd753m8KEmZXz4UcU,1470
51
- orionis/console/entities/job_executed.py,sha256=mrjL_-w-BJzri1E3Xbl2cnPl6e6Ynanm4SFDijaEGfE,1002
52
- orionis/console/entities/job_max_instances.py,sha256=MwU4P9xhLBwUyhPGDLxXrbtmKZ5BQP-9go4RGiPHW0o,956
53
- orionis/console/entities/job_missed.py,sha256=sIHLGBy9NEGlR339pm6nbT4y4d1NWlerH_vNE5S-AYE,848
54
- orionis/console/entities/job_modified.py,sha256=s12KMTtuHVX8U6XqGaFs_58oj4jwnZNJeZc7l1bXv7A,634
55
- orionis/console/entities/job_pause.py,sha256=oLN28duhcu6Nm-wVhsTY458_3ucPc9G3Wogit3i16Pk,693
56
- orionis/console/entities/job_removed.py,sha256=8Xp12158cmulyhgmprZ043RDtTz88w5hTlcgueb7-0k,705
57
- orionis/console/entities/job_resume.py,sha256=IwCkjO5zrPU59hruF264EQYrPDoSEp_j4QrwORRgkhc,814
58
- orionis/console/entities/job_store_added.py,sha256=NoocJD3zSm7E8ZsUob8BdvKxveu9WdEqAtVPCzC8WII,735
59
- orionis/console/entities/job_store_removed.py,sha256=wh53sf3Rkezo5hMQkWo-NToeCYwMOmp7BLa1ACVUnqo,740
60
- orionis/console/entities/job_submitted.py,sha256=8ftGEOsDQxHYK2tunGA9_b-u581hPcvNnZ5NmmaMua0,731
61
- orionis/console/entities/scheduler_error.py,sha256=4nedVmkx69IeZzmilCcH5AeghkS2zblwNpsK12bcxHQ,717
62
- orionis/console/entities/scheduler_event_data.py,sha256=w8JF83axusNhCoY2hJ8PpZR3rQRu1l5g7wqT1GBqW08,811
63
- orionis/console/entities/scheduler_paused.py,sha256=YwiVM2lDWOEdFHP4m-BLHFMiwQmZ6Cvknhl5FGDwf9M,557
64
- orionis/console/entities/scheduler_resumed.py,sha256=GT-QvvP38Qhr9ZnrHTCuDKFubRdAi3yVh58_W0YXqlk,735
65
- orionis/console/entities/scheduler_shutdown.py,sha256=vRFXUt3hxKueaT6M4335HFL3NO3pe8QB9CSMvW_4PB0,900
66
- orionis/console/entities/scheduler_started.py,sha256=U0pduaFhWrEUJQws81jTjDmTp4Kxfy6ontq8rQN4Y6I,910
42
+ orionis/console/entities/command.py,sha256=NPdyG4U3JtDMOS7Em2_AklNyyuoTnKxyGseMWrADlc4,1571
43
+ orionis/console/entities/event.py,sha256=44exJIBMB8v_Dixv2qgatl2ln-Tmv7g2b63oetsJFHc,3015
44
+ orionis/console/entities/event_job.py,sha256=b8fbloHnf7qYtQ0W4d7MWw0jj4l07B0RtS3UkMJwE0M,4292
45
+ orionis/console/entities/scheduler_error.py,sha256=5cuEDHmszZFzNE_RYQ4U4T1snG4nieuN3jG43DPlAJE,1166
46
+ orionis/console/entities/scheduler_event_data.py,sha256=ujkVd--NxNADcOv2ZdkFuI6crZxVv-TEIJvNvPoQnC0,717
47
+ orionis/console/entities/scheduler_paused.py,sha256=tNhlJx4VVHrTeU9uaa8gNprSXymfCiV7Lv9xyqIS9Ug,819
48
+ orionis/console/entities/scheduler_resumed.py,sha256=A5eIuhqmQIUYEnfpCF8HHaoBOAGDJI2KLPB-j5Cesjc,697
49
+ orionis/console/entities/scheduler_shutdown.py,sha256=aXOhNgXFQT7vdUk05Ib7mjfd0-Y_A7jq66uok9v-nsM,1036
50
+ orionis/console/entities/scheduler_started.py,sha256=-ONkJSX3XhhT7JgqTb727St-tcowknI-GHocNrxf2AE,950
67
51
  orionis/console/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
- orionis/console/enums/actions.py,sha256=S3T-vWS6DJSGtANrq3od3-90iYAjPvJwaOZ2V02y34c,1222
69
- orionis/console/enums/listener.py,sha256=bDHDOkKQFEfEmZyiisZj37ozr8Hs7_lKvm_3uYjvEpw,2988
70
- orionis/console/enums/styles.py,sha256=6a4oQCOBOKMh2ARdeq5GlIskJ3wjiylYmh66tUKKmpQ,4053
52
+ orionis/console/enums/actions.py,sha256=1peNzH9R9RBf_uEXB1Q2__J5r-Rb7qm3pcRjbBkDc7g,1935
53
+ orionis/console/enums/listener.py,sha256=eIBWeWtg-FdTFbbPU43ChymAV3mXYZPj2H2FCyE10w8,2711
54
+ orionis/console/enums/styles.py,sha256=IItXN6uJ2tGmJZFZekn6ZrMHLDUVierU0koO625OD3c,5199
71
55
  orionis/console/exceptions/__init__.py,sha256=0qlHNuHMVZO87M-rP8lThUUyljRM1jSFNikaxSCjSbw,366
72
56
  orionis/console/exceptions/cli_exception.py,sha256=HsZ_vSeNiJWQ0gznVFNcIdhM0Bj_vkSRVBJs0wMjEKY,1141
73
57
  orionis/console/exceptions/cli_orionis_value_error.py,sha256=RQP0HRwxDG8hxFOT1kUoZ1Ab1CZ1KLoSIl5yqlmgG4M,1147
@@ -81,8 +65,8 @@ orionis/console/output/console.py,sha256=EtSDWRBW8wk0iJdPfB1mzU49krLJBaSAUdVdVOz
81
65
  orionis/console/output/executor.py,sha256=uQjFPOlyZLFj9pcyYPugCqxwJog0AJgK1OcmQH2ELbw,7314
82
66
  orionis/console/request/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
67
  orionis/console/request/cli_request.py,sha256=zFuoFzLVDCcSNcJZAuLAlsc9jfhck5o23qaKc2C0QAg,13231
84
- orionis/console/stub/command.stub,sha256=kRBdSqt1eBPe3W8xDR5meQBXl3JuRcs75Q6kmfkyRKM,733
85
- orionis/console/stub/listener.stub,sha256=aFod_RZhoqo1W7l0S7fFBJ0-S46bQqwRAOr47ru8XYU,4846
68
+ orionis/console/stub/command.stub,sha256=ATmJunhcRMGWkEKcwhJlnuAAzyGDMo9XGiPPp6xxwTQ,1258
69
+ orionis/console/stub/listener.stub,sha256=DbX-ghx2-vb73kzQ6L20lyg5vSKn58jSLTwFuwNQU9k,4331
86
70
  orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
71
  orionis/console/tasks/schedule.py,sha256=qFnzoLyK69iaKEWMfEVxLs3S9aWVRzD4G6emTFhJMaY,83386
88
72
  orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -243,7 +227,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=1do4B09bU_6xbFHHVYYTGM
243
227
  orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
244
228
  orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
245
229
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
246
- orionis/metadata/framework.py,sha256=5B01tasrgYuo1fQphRdEqWC8Hj9AED9Bcj3xsSRS3yw,4109
230
+ orionis/metadata/framework.py,sha256=gmjxLsSQEGcDJIW7OHiWBI0Pr24R51WDOlKH3HzpvT8,4109
247
231
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
248
232
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
249
233
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -436,8 +420,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
436
420
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
437
421
  orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
438
422
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
439
- orionis-0.566.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
440
- orionis-0.566.0.dist-info/METADATA,sha256=kqPTnESfNhdLvCq0qTJ2bt0HhYA7Y8X3_LCy9Hoa2l0,4801
441
- orionis-0.566.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
442
- orionis-0.566.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
443
- orionis-0.566.0.dist-info/RECORD,,
423
+ orionis-0.568.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
424
+ orionis-0.568.0.dist-info/METADATA,sha256=is4MlNnAm9fp31xL56hKtmG-XSoHD3zs4w0MkFAdXq0,4801
425
+ orionis-0.568.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
+ orionis-0.568.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
427
+ orionis-0.568.0.dist-info/RECORD,,
@@ -1,23 +0,0 @@
1
- from dataclasses import dataclass
2
- from orionis.console.entities.scheduler_event_data import SchedulerEventData
3
-
4
- @dataclass(kw_only=True)
5
- class AllJobsRemoved(SchedulerEventData):
6
- """
7
- Represents an event triggered when all jobs are removed from a specific job store.
8
-
9
- This event is typically used to notify that a job store has been cleared of all its jobs.
10
-
11
- Attributes
12
- ----------
13
- jobstore : str
14
- The alias or identifier of the job store from which all jobs were removed.
15
-
16
- Returns
17
- -------
18
- None
19
- This class does not return a value; it is used to encapsulate event data.
20
- """
21
-
22
- # The alias of the job store from which jobs were removed
23
- jobstore: str
@@ -1,23 +0,0 @@
1
- from dataclasses import dataclass
2
- from orionis.console.entities.scheduler_event_data import SchedulerEventData
3
-
4
- @dataclass(kw_only=True)
5
- class ExecutorAdded(SchedulerEventData):
6
- """
7
- Represents an event triggered when an executor is added to the system.
8
-
9
- This event is used to notify that a new executor has been successfully added.
10
-
11
- Attributes
12
- ----------
13
- alias : str
14
- The unique alias or identifier of the added executor.
15
-
16
- Returns
17
- -------
18
- ExecutorAdded
19
- An instance of the ExecutorAdded event containing the alias of the added executor.
20
- """
21
-
22
- # The alias of the added executor, used to uniquely identify it
23
- alias: str
@@ -1,25 +0,0 @@
1
- from dataclasses import dataclass
2
- from orionis.console.entities.scheduler_event_data import SchedulerEventData
3
-
4
- @dataclass(kw_only=True)
5
- class ExecutorRemoved(SchedulerEventData):
6
- """
7
- Represents an event triggered when an executor is removed.
8
-
9
- This event is used to notify the system that a specific executor, identified
10
- by its alias, has been removed from the scheduler.
11
-
12
- Attributes
13
- ----------
14
- alias : str
15
- The alias (unique identifier) of the removed executor.
16
-
17
- Returns
18
- -------
19
- None
20
- This class does not return a value; it is used as a data structure
21
- to encapsulate event information.
22
- """
23
-
24
- # The alias of the removed executor
25
- alias: str
@@ -1,24 +0,0 @@
1
- from dataclasses import dataclass
2
- from orionis.console.entities.job_event_data import JobEventData
3
-
4
- @dataclass(kw_only=True)
5
- class JobAdded(JobEventData):
6
- """
7
- Represents an event triggered when a job is added to a job store.
8
-
9
- This class extends the `JobEventData` base class, inheriting its attributes
10
- and functionality. It is used to encapsulate data related to the addition
11
- of a job in the system.
12
-
13
- Attributes
14
- ----------
15
- Inherits all attributes from the `JobEventData` base class.
16
-
17
- Returns
18
- -------
19
- JobAdded
20
- An instance of the `JobAdded` class containing data about the added job.
21
- """
22
-
23
- # This class currently does not define additional attributes or methods.
24
- # It serves as a specialized event type for job addition events.
@@ -1,35 +0,0 @@
1
- from dataclasses import dataclass
2
- from datetime import datetime
3
- from orionis.console.entities.job_event_data import JobEventData
4
-
5
- @dataclass(kw_only=True)
6
- class JobError(JobEventData):
7
- """
8
- Represents an event triggered when a job raises an exception during execution.
9
-
10
- This class is used to encapsulate information about an error that occurred
11
- during the execution of a scheduled job, including the time the job was
12
- scheduled to run, the exception raised, and the traceback details.
13
-
14
- Attributes
15
- ----------
16
- scheduled_run_time : datetime
17
- The datetime when the job was scheduled to run.
18
- exception : Exception
19
- The exception instance raised by the job during execution.
20
- traceback : str
21
- The traceback string providing details about where the exception occurred.
22
-
23
- Returns
24
- -------
25
- JobError
26
- An instance of the `JobError` class containing details about the job error event.
27
- """
28
- # The time the job was scheduled to run
29
- scheduled_run_time: datetime
30
-
31
- # The exception raised during the job's execution
32
- exception: Exception
33
-
34
- # The traceback string providing details about the exception
35
- traceback: str