Eric Callahan
09b6a33ae4
history: add check for interrupted jobs
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-27 07:37:31 -05:00
Eric Callahan
b18e9cc222
all: Replace strings with RequestType flags
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-16 16:21:20 -05:00
Eric Callahan
6e8b720d17
job_state: combine events into a single handler
...
Emit a single event where the first argument contains
a "JobEvent" enumeration that describes the particular
event. This reduces the number of callbacks registered
by JobState consumers and allows them react to multiple
state changes in the same callback.
The individual events remain for compatibility, however
they are deprecated. Current modules should be updated
to use the "job_state:state_changed" event and new modules
must use this event.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-16 16:21:20 -05:00
Eric Callahan
d6231634db
history: add modified time check for file existence
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-06-01 05:50:31 -04:00
Eric Callahan
6d73c60a38
moonraker: move common classes to common.py
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-24 07:08:41 -05:00
Eric Callahan
0f8638fec7
components: correct imports
...
All imports must now be relative to work correctly with the
moonraker parent package.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 12:16:27 -05:00
Eric Callahan
bbd5d8a1a1
history: add logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-19 06:22:58 -04:00
Eric Callahan
c081fa49a1
history: update for database changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-02-17 11:19:57 -05:00
Eric Callahan
358fe9733f
history: implement reset totals endpoint
...
This allows clients to request that job totals are reset to 0.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
21ee446509
history: use the job_state module to manage job events
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Arksine
2ab63d75fc
moonraker: fix imports for type checking
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-06 19:25:10 -04:00
Kamil Trzcinski
6770a965a6
history: add support for cancelled state
...
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
2021-06-12 11:35:35 -04:00
Arksine
1755d0f970
history: add annotations
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-18 19:16:49 -04:00
Arksine
4ee32ebaf3
history: minor codestyle change
...
Use the accepted "not in" test for membership.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-09 08:13:18 -04:00
Kamil Trzciński
6cc11276c8
Extend history API with reverse order
...
Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
2021-04-05 11:41:14 -04:00
Arksine
e7f605327f
history: set maximum jobs stored to 10000
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-22 11:45:15 -04:00
Arksine
4b13af4d86
history: track and report total job statistics
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-22 11:41:38 -04:00
Arksine
f38cacd513
history: fix "/server/history/list" when no jobs are present
...
Return an empty list instead of an empty object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-21 14:43:28 -04:00
Arksine
1dc920019c
moonraker: rename the "plugins" package to "components"
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-18 08:29:31 -04:00