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.
- orionis/console/base/scheduler.py +4 -4
- orionis/console/contracts/base_scheduler.py +4 -4
- orionis/console/entities/command.py +9 -7
- orionis/console/entities/event.py +29 -22
- orionis/console/entities/event_job.py +58 -44
- orionis/console/entities/scheduler_error.py +19 -6
- orionis/console/entities/scheduler_event_data.py +7 -10
- orionis/console/entities/scheduler_paused.py +12 -4
- orionis/console/entities/scheduler_resumed.py +7 -7
- orionis/console/entities/scheduler_shutdown.py +15 -7
- orionis/console/entities/scheduler_started.py +15 -7
- orionis/console/enums/actions.py +35 -16
- orionis/console/enums/listener.py +31 -33
- orionis/console/enums/styles.py +61 -64
- orionis/console/stub/command.stub +35 -16
- orionis/console/stub/listener.stub +0 -18
- orionis/metadata/framework.py +1 -1
- {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/METADATA +1 -1
- {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/RECORD +22 -38
- orionis/console/entities/all_jobs_removed.py +0 -23
- orionis/console/entities/executor_added.py +0 -23
- orionis/console/entities/executor_removed.py +0 -25
- orionis/console/entities/job_added.py +0 -24
- orionis/console/entities/job_error.py +0 -35
- orionis/console/entities/job_event_data.py +0 -40
- orionis/console/entities/job_executed.py +0 -31
- orionis/console/entities/job_max_instances.py +0 -27
- orionis/console/entities/job_missed.py +0 -25
- orionis/console/entities/job_modified.py +0 -22
- orionis/console/entities/job_pause.py +0 -22
- orionis/console/entities/job_removed.py +0 -22
- orionis/console/entities/job_resume.py +0 -25
- orionis/console/entities/job_store_added.py +0 -24
- orionis/console/entities/job_store_removed.py +0 -25
- orionis/console/entities/job_submitted.py +0 -24
- {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/WHEEL +0 -0
- {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/top_level.txt +0 -0
@@ -1,40 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass
|
2
|
-
from typing import Optional
|
3
|
-
from orionis.console.entities.scheduler_event_data import SchedulerEventData
|
4
|
-
|
5
|
-
@dataclass(kw_only=True)
|
6
|
-
class JobEventData(SchedulerEventData):
|
7
|
-
"""
|
8
|
-
Represents the base class for events related to jobs in the scheduler system.
|
9
|
-
|
10
|
-
This class extends `SchedulerEventData` and provides additional attributes
|
11
|
-
specific to job-related events, such as the job's identifier and the job store
|
12
|
-
where it resides.
|
13
|
-
|
14
|
-
Attributes
|
15
|
-
----------
|
16
|
-
code : int
|
17
|
-
A numeric code that uniquely identifies the type of event within the
|
18
|
-
scheduler system. (Inherited from `SchedulerEventData`)
|
19
|
-
alias : str, optional
|
20
|
-
An optional string providing additional context or identifying specific
|
21
|
-
components (e.g., executors or job stores) related to the event.
|
22
|
-
(Inherited from `SchedulerEventData`)
|
23
|
-
job_id : str
|
24
|
-
The unique identifier of the job associated with the event.
|
25
|
-
jobstore : str, optional
|
26
|
-
The name of the job store where the job is located. If not specified,
|
27
|
-
it defaults to `None`.
|
28
|
-
|
29
|
-
Returns
|
30
|
-
-------
|
31
|
-
JobEventData
|
32
|
-
An instance of the `JobEventData` class containing information about
|
33
|
-
the job-related event.
|
34
|
-
"""
|
35
|
-
|
36
|
-
# The unique identifier of the job
|
37
|
-
job_id: str
|
38
|
-
|
39
|
-
# The name of the job store where the job resides (optional)
|
40
|
-
jobstore: Optional[str] = None
|
@@ -1,31 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass
|
2
|
-
from datetime import datetime
|
3
|
-
from typing import Any
|
4
|
-
from orionis.console.entities.job_event_data import JobEventData
|
5
|
-
|
6
|
-
@dataclass(kw_only=True)
|
7
|
-
class JobExecuted(JobEventData):
|
8
|
-
"""
|
9
|
-
Represents an event triggered when a job completes successfully.
|
10
|
-
|
11
|
-
This class is used to encapsulate information about a successfully executed job,
|
12
|
-
including the time it was scheduled to run and the return value of the job function.
|
13
|
-
|
14
|
-
Attributes
|
15
|
-
----------
|
16
|
-
scheduled_run_time : datetime
|
17
|
-
The datetime when the job was scheduled to execute.
|
18
|
-
retval : Any
|
19
|
-
The return value produced by the job function upon successful execution.
|
20
|
-
|
21
|
-
Returns
|
22
|
-
-------
|
23
|
-
JobExecuted
|
24
|
-
An instance of the `JobExecuted` class containing details about the executed job.
|
25
|
-
"""
|
26
|
-
|
27
|
-
# The datetime when the job was scheduled to run
|
28
|
-
scheduled_run_time: datetime
|
29
|
-
|
30
|
-
# The return value of the job function
|
31
|
-
retval: Any
|
@@ -1,27 +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 JobMaxInstances(JobEventData):
|
7
|
-
"""
|
8
|
-
Represents an event triggered when a job exceeds its maximum allowed instances.
|
9
|
-
|
10
|
-
This class is a specialized event data structure that inherits from `JobEventData`.
|
11
|
-
It is used to capture and store information about the event when a job exceeds
|
12
|
-
the maximum number of instances it is allowed to run.
|
13
|
-
|
14
|
-
Attributes
|
15
|
-
----------
|
16
|
-
run_time : datetime
|
17
|
-
The datetime when the job was scheduled to run. This indicates the time
|
18
|
-
the job was supposed to execute before exceeding the instance limit.
|
19
|
-
|
20
|
-
Returns
|
21
|
-
-------
|
22
|
-
JobMaxInstances
|
23
|
-
An instance of the `JobMaxInstances` class containing the event details.
|
24
|
-
"""
|
25
|
-
|
26
|
-
# The time the job was scheduled to run
|
27
|
-
run_time: datetime
|
@@ -1,25 +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 JobMissed(JobEventData):
|
7
|
-
"""
|
8
|
-
Represents an event triggered when a scheduled job run is missed due to scheduler constraints.
|
9
|
-
|
10
|
-
This class extends `JobEventData` and provides additional information about the missed job event,
|
11
|
-
specifically the time the job was originally scheduled to run.
|
12
|
-
|
13
|
-
Attributes
|
14
|
-
----------
|
15
|
-
scheduled_run_time : datetime
|
16
|
-
The datetime when the job was originally scheduled to execute.
|
17
|
-
|
18
|
-
Returns
|
19
|
-
-------
|
20
|
-
None
|
21
|
-
This class does not return a value; it is used to encapsulate event data.
|
22
|
-
"""
|
23
|
-
|
24
|
-
# The datetime when the job was supposed to run but was missed
|
25
|
-
scheduled_run_time: datetime
|
@@ -1,22 +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 JobModified(JobEventData):
|
6
|
-
"""
|
7
|
-
Represents an event triggered when a job is modified in a job store.
|
8
|
-
|
9
|
-
This class is a data structure that extends `JobEventData` to provide
|
10
|
-
additional context or functionality specific to job modification events.
|
11
|
-
|
12
|
-
Attributes
|
13
|
-
----------
|
14
|
-
(Inherited from JobEventData)
|
15
|
-
|
16
|
-
Returns
|
17
|
-
-------
|
18
|
-
None
|
19
|
-
This class does not return a value; it is used as a data container.
|
20
|
-
"""
|
21
|
-
|
22
|
-
next_run_time: str | None = None
|
@@ -1,22 +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 JobPause(JobEventData):
|
6
|
-
"""
|
7
|
-
Represents an event triggered when a job is paused in the job store.
|
8
|
-
|
9
|
-
This class extends `JobEventData` to provide additional context or
|
10
|
-
functionality specific to the pausing of a job.
|
11
|
-
|
12
|
-
Attributes
|
13
|
-
----------
|
14
|
-
(Inherited from JobEventData)
|
15
|
-
|
16
|
-
Returns
|
17
|
-
-------
|
18
|
-
JobPause
|
19
|
-
An instance of the `JobPause` class representing the pause event.
|
20
|
-
"""
|
21
|
-
# This class does not define additional attributes or methods.
|
22
|
-
# It serves as a specialized event type for job pausing.
|
@@ -1,22 +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 JobRemoved(JobEventData):
|
6
|
-
"""
|
7
|
-
Represents an event triggered when a job is removed from a job store.
|
8
|
-
|
9
|
-
This class extends `JobEventData` to provide additional context or
|
10
|
-
functionality specific to the removal of a job.
|
11
|
-
|
12
|
-
Attributes
|
13
|
-
----------
|
14
|
-
(Inherited from JobEventData)
|
15
|
-
|
16
|
-
Returns
|
17
|
-
-------
|
18
|
-
JobRemoved
|
19
|
-
An instance of the `JobRemoved` class representing the removal event.
|
20
|
-
"""
|
21
|
-
# No additional attributes or methods are defined here; this class
|
22
|
-
# serves as a specialized event type for job removal.
|
@@ -1,25 +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 JobResume(JobEventData):
|
6
|
-
"""
|
7
|
-
Represents an event triggered when a job is resumed from a paused state.
|
8
|
-
|
9
|
-
This class extends `JobEventData` to provide additional context or
|
10
|
-
functionality specific to the resumption of a job.
|
11
|
-
|
12
|
-
Attributes
|
13
|
-
----------
|
14
|
-
(Inherited from JobEventData)
|
15
|
-
All attributes from the parent class `JobEventData` are available
|
16
|
-
in this class.
|
17
|
-
|
18
|
-
Returns
|
19
|
-
-------
|
20
|
-
JobResume
|
21
|
-
An instance of the `JobResume` class representing the resumption event.
|
22
|
-
"""
|
23
|
-
|
24
|
-
# This class does not define additional attributes or methods.
|
25
|
-
# It serves as a specialized event type for job resumption.
|
@@ -1,24 +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 JobstoreAdded(SchedulerEventData):
|
6
|
-
"""
|
7
|
-
Event triggered when a job store is added to the scheduler.
|
8
|
-
|
9
|
-
This event is used to notify that a new job store has been successfully added to the scheduler.
|
10
|
-
It provides the alias of the added job store, which can be used to identify it.
|
11
|
-
|
12
|
-
Attributes
|
13
|
-
----------
|
14
|
-
alias : str
|
15
|
-
The alias (name) of the added job store.
|
16
|
-
|
17
|
-
Returns
|
18
|
-
-------
|
19
|
-
None
|
20
|
-
This class does not return a value; it is used to encapsulate event data.
|
21
|
-
"""
|
22
|
-
|
23
|
-
# The alias of the added job store
|
24
|
-
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 JobstoreRemoved(SchedulerEventData):
|
6
|
-
"""
|
7
|
-
Represents an event triggered when a job store is removed.
|
8
|
-
|
9
|
-
This event is typically used to notify the system or other components
|
10
|
-
that a specific job store has been removed, allowing for any necessary
|
11
|
-
cleanup or updates.
|
12
|
-
|
13
|
-
Attributes
|
14
|
-
----------
|
15
|
-
alias : str
|
16
|
-
The alias (unique identifier) of the removed job store.
|
17
|
-
|
18
|
-
Returns
|
19
|
-
-------
|
20
|
-
None
|
21
|
-
This class does not return a value; it is used to encapsulate event data.
|
22
|
-
"""
|
23
|
-
|
24
|
-
# The alias of the removed job store
|
25
|
-
alias: str
|
@@ -1,24 +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 JobSubmitted(JobEventData):
|
7
|
-
"""
|
8
|
-
Represents an event triggered when a job is submitted to an executor.
|
9
|
-
|
10
|
-
This class extends `JobEventData` and includes additional information
|
11
|
-
about the scheduled execution time of the job.
|
12
|
-
|
13
|
-
Attributes
|
14
|
-
----------
|
15
|
-
run_time : datetime
|
16
|
-
The datetime when the job is scheduled to run.
|
17
|
-
|
18
|
-
Returns
|
19
|
-
-------
|
20
|
-
None
|
21
|
-
This class does not return a value; it is used to encapsulate event data.
|
22
|
-
"""
|
23
|
-
# The datetime when the job is scheduled to run
|
24
|
-
run_time: datetime
|
File without changes
|
File without changes
|
File without changes
|