Documents the scheduling module

This commit is contained in:
BinaryAlley committed 2026-09-03 12:52:08 -07:00
1 parent 4792a31f85
commit ab8ab51397
18 files changed
+734 -7

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ For those with technical curiosities, here are some goodies to browse through:
4. [3.2 Component API Server diagram](./docs/technical/architecture/3.2%20component-api-server-diagram.svg)
5. [4.1 Code media library scanning diagram](./docs/technical/architecture/4.1%20code-media-library-scanning-diagram.svg)
6. [4.2 Code book reading diagram](./docs/technical/architecture/4.2%20code-book-reading-diagram.svg)
7. [4.3 Code scheduled jobs diagram](./docs/technical/architecture/4.3%20code-scheduler-diagram.svg)
- Also for Software Architects, you might want to take a look at the Architecture Decision Log, where you may find important stories from the past of Lumina's development, like [this one](./docs/technical/architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0001.md), and others like it.
## Telemetry and Observability
@@ -0,0 +1,246 @@
# Lumina API
- [Lumina API](#lumina-api)
- [Scheduled Jobs](#scheduled-jobs)
- [Add Scheduled Job](#add-scheduled-job)
- [Add Scheduled Job Request](#add-scheduled-job-request)
- [Add Scheduled Job Response](#add-scheduled-job-response)
- [Get Scheduled Jobs](#get-scheduled-jobs)
- [Get Scheduled Jobs Request](#get-scheduled-jobs-request)
- [Get Scheduled Jobs Response](#get-scheduled-jobs-response)
- [Get Scheduled Job History](#get-scheduled-job-history)
- [Get Scheduled Job History Request](#get-scheduled-job-history-request)
- [Get Scheduled Job History Response](#get-scheduled-job-history-response)
- [Remove Scheduled Job](#remove-scheduled-job)
- [Remove Scheduled Job Request](#remove-scheduled-job-request)
- [Remove Scheduled Job Response](#remove-scheduled-job-response)
- [Start Scheduled Job](#start-scheduled-job)
- [Start Scheduled Job Request](#start-scheduled-job-request)
- [Start Scheduled Job Response](#start-scheduled-job-response)
- [Stop Scheduled Job](#stop-scheduled-job)
- [Stop Scheduled Job Request](#stop-scheduled-job-request)
- [Stop Scheduled Job Response](#stop-scheduled-job-response)
- [Fire Scheduled Job](#fire-scheduled-job)
- [Fire Scheduled Job Request](#fire-scheduled-job-request)
- [Fire Scheduled Job Response](#fire-scheduled-job-response)
## Scheduled Jobs
### Add Scheduled Job
#### Add Scheduled Job Request
```js
POST api/v1/scheduled-jobs
```
```json
{
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0
}
```
#### Add Scheduled Job Response
```js
200 Ok
```
```json
{
"id": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0,
"status": "Added",
"lastStartedOnUtc": null,
"lastCompletedOnUtc": null
}
```
### Get Scheduled Jobs
#### Get Scheduled Jobs Request
```js
GET api/v1/scheduled-jobs
```
#### Get Scheduled Jobs Response
```js
200 Ok
```
```json
[
{
"id": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0,
"status": "Active",
"lastStartedOnUtc": "2026-09-02T03:00:00.0000000Z",
"lastCompletedOnUtc": "2026-09-02T03:00:42.0000000Z"
},
{
"id": "8c3f7b2e-1a4d-4f9c-b8e6-7d2a5f1c9e4b",
"name": "Clean temporary files",
"taskType": "CleanTemporaryFiles",
"scheduleType": "WithIntervalInMinutes",
"intervalMinutes": 60,
"hour": null,
"minute": null,
"status": "Added",
"lastStartedOnUtc": null,
"lastCompletedOnUtc": null
}
]
```
### Get Scheduled Job History
#### Get Scheduled Job History Request
```js
GET api/v1/scheduled-jobs/history?from=2026-09-02T00:00:00.0000000Z&to=2026-09-03T00:00:00.0000000Z
```
#### Get Scheduled Job History Response
```js
200 Ok
```
```json
[
{
"id": "e5a1c9d4-6b7f-4a2e-9d3c-8f4b1a6c2d5e",
"scheduledJobId": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"taskType": "ScanMediaLibraries",
"isCycleRun": true,
"startedOnUtc": "2026-09-02T03:00:00.0000000Z",
"completedOnUtc": "2026-09-02T03:00:42.0000000Z"
},
{
"id": "7f2d4e8a-3c5b-4f1a-9b6e-2a8c4d7e1f3b",
"scheduledJobId": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"taskType": "ScanMediaLibraries",
"isCycleRun": false,
"startedOnUtc": "2026-09-02T08:15:00.0000000Z",
"completedOnUtc": "2026-09-02T08:15:55.0000000Z"
}
]
```
### Remove Scheduled Job
#### Remove Scheduled Job Request
```js
DELETE api/v1/scheduled-jobs/{scheduledJobId}
```
#### Remove Scheduled Job Response
```js
200 Ok
```
### Start Scheduled Job
#### Start Scheduled Job Request
```js
PUT api/v1/scheduled-jobs/{scheduledJobId}/start
```
#### Start Scheduled Job Response
```js
200 Ok
```
```json
{
"id": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0,
"status": "Active",
"lastStartedOnUtc": null,
"lastCompletedOnUtc": null
}
```
### Stop Scheduled Job
#### Stop Scheduled Job Request
```js
PUT api/v1/scheduled-jobs/{scheduledJobId}/stop
```
#### Stop Scheduled Job Response
```js
200 Ok
```
```json
{
"id": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0,
"status": "Added",
"lastStartedOnUtc": "2026-09-02T03:00:00.0000000Z",
"lastCompletedOnUtc": "2026-09-02T03:00:42.0000000Z"
}
```
### Fire Scheduled Job
#### Fire Scheduled Job Request
```js
PUT api/v1/scheduled-jobs/{scheduledJobId}/fire
```
#### Fire Scheduled Job Response
```js
200 Ok
```
```json
{
"id": "d0b8e2a4-3f9c-4b6d-8e7a-1c5f2a9b4e6d",
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0,
"status": "Active",
"lastStartedOnUtc": null,
"lastCompletedOnUtc": null
}
```
@@ -8,11 +8,11 @@ Person(user, "Home User", "A person who wants to manage and stream their persona
Person(admin, "Administrator", "A person who manages the media library system")
System_Boundary(c1, "Lumina 1.1") {
Container(webapp, "Web Application Client 2.1", "ASP.NET Core MVC", "Delivers server-rendered views with dynamic client-side functionality for media management and playback [detailed in '3.1 component-web-client-diagram.puml']")
Container(webapp, "Web Application Client 2.1", "ASP.NET Core MVC", "Delivers server-rendered views with dynamic client-side functionality for media management, playback, and the scheduled jobs dashboard [detailed in '3.1 component-web-client-diagram.puml']")
Container(api, "API Server 2.2", "ASP.NET Core", "Provides media management functionality via a REST API, processes media tasks, manages metadata synchronization, and serves books for reading through format plugins [detailed in '3.2 component-api-server-diagram.puml']")
Container(api, "API Server 2.2", "ASP.NET Core", "Provides media management functionality via a REST API, processes media tasks, manages metadata synchronization, serves books for reading through format plugins, and runs the scheduled jobs that maintain the system [detailed in '3.2 component-api-server-diagram.puml']")
ContainerDb(db, "Database", "SQLite", "Stores user data, media metadata, library configuration, automated jobs information, etc")
ContainerDb(db, "Database", "SQLite", "Stores user data, media metadata, library configuration, scheduled jobs and their executions, automated jobs information, etc")
Container(filestore, "Media Store", "File System", "Stores the actual media files")
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:984px;height:1323px;background:#FFFFFF;" width="984px" height="1323px" viewBox="0 0 984 1323" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="377.219" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Lumina 1.1</text></g><!--cluster c1--><g class="cluster" data-qualified-name="c1" id="ent0003" data-source-line="1666"><rect x="7" y="300.609" width="726" height="812.5" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="328.211" y="319.219" fill="#444" font-size="16" textLength="83.578" font-weight="700">Lumina 1.1</text><text x="345.323" y="335.191" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text></g><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="343.5" y="354.609" width="252.996" height="198.609" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="382.889" y="381.219" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="416.662" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="421.107" y="381.219" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="508.217" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="512.662" y="381.219" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="458.877" y="401.344" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="411.319" y="417.316" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="465.999" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="469.333" y="417.316" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="495.343" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="498.677" y="417.316" fill="#FFF" font-size="12" textLength="30" font-style="italic">MVC]</text><text x="468.053" y="434.486" fill="#FFF" font-size="14"> </text><text x="373.522" y="452.096" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="424.088" y="452.096" fill="#FFF" font-size="14"> </text><text x="427.978" y="452.096" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="527.577" y="452.096" fill="#FFF" font-size="14"> </text><text x="531.467" y="452.096" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="396.081" y="469.705" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="420.978" y="469.705" fill="#FFF" font-size="14"> </text><text x="424.867" y="469.705" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="476.998" y="469.705" fill="#FFF" font-size="14"> </text><text x="480.888" y="469.705" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="401.909" y="487.314" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="475.839" y="487.314" fill="#FFF" font-size="14"> </text><text x="479.729" y="487.314" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="496.067" y="487.314" fill="#FFF" font-size="14"> </text><text x="499.957" y="487.314" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="385.943" y="504.924" fill="#FFF" font-size="14" textLength="81.717">management</text><text x="467.66" y="504.924" fill="#FFF" font-size="14"> </text><text x="471.55" y="504.924" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="494.908" y="504.924" fill="#FFF" font-size="14"> </text><text x="498.798" y="504.924" fill="#FFF" font-size="14" textLength="55.255">playback</text><text x="423.127" y="522.533" fill="#FFF" font-size="14" textLength="52.931">[detailed</text><text x="476.058" y="522.533" fill="#FFF" font-size="14"> </text><text x="479.948" y="522.533" fill="#FFF" font-size="14" textLength="10.896">in</text><text x="490.844" y="522.533" fill="#FFF" font-size="14"> </text><text x="494.734" y="522.533" fill="#FFF" font-size="14" textLength="22.135">'3.1</text><text x="353.5" y="540.143" fill="#FFF" font-size="14" textLength="232.996">component-web-client-diagram.puml']</text></g><!--entity api--><g class="entity" data-qualified-name="c1.api" id="ent0005" data-source-line="71"><rect x="344" y="645.609" width="252.21" height="213.703" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="416.292" y="672.219" fill="#FFF" font-size="16" textLength="26.672" font-weight="700">API</text><text x="442.964" y="672.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="447.41" y="672.219" fill="#FFF" font-size="16" tLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:980px;height:1400px;background:#FFFFFF;" width="980px" height="1400px" viewBox="0 0 980 1400" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="375.219" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Lumina 1.1</text></g><!--cluster c1--><g class="cluster" data-qualified-name="c1" id="ent0003" data-source-line="1666"><rect x="7" y="300.609" width="722" height="889" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="326.211" y="319.219" fill="#444" font-size="16" textLength="83.578" font-weight="700">Lumina 1.1</text><text x="343.323" y="335.191" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text></g><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="339.5" y="354.609" width="252.996" height="216.219" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="378.889" y="381.219" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="412.662" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="417.107" y="381.219" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="504.217" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="508.662" y="381.219" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="454.877" y="401.344" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="407.319" y="417.316" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="461.999" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="465.333" y="417.316" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="491.343" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="494.677" y="417.316" fill="#FFF" font-size="12" textLength="30" font-style="italic">MVC]</text><text x="464.053" y="434.486" fill="#FFF" font-size="14"> </text><text x="369.522" y="452.096" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="420.088" y="452.096" fill="#FFF" font-size="14"> </text><text x="423.978" y="452.096" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="523.577" y="452.096" fill="#FFF" font-size="14"> </text><text x="527.467" y="452.096" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="392.081" y="469.705" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="416.978" y="469.705" fill="#FFF" font-size="14"> </text><text x="420.867" y="469.705" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="472.998" y="469.705" fill="#FFF" font-size="14"> </text><text x="476.888" y="469.705" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="397.909" y="487.314" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="471.839" y="487.314" fill="#FFF" font-size="14"> </text><text x="475.729" y="487.314" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="492.067" y="487.314" fill="#FFF" font-size="14"> </text><text x="495.957" y="487.314" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="366.378" y="504.924" fill="#FFF" font-size="14" textLength="85.606">management,</text><text x="451.984" y="504.924" fill="#FFF" font-size="14"> </text><text x="455.874" y="504.924" fill="#FFF" font-size="14" textLength="59.145">playback,</text><text x="515.019" y="504.924" fill="#FFF" font-size="14"> </text><text x="518.908" y="504.924" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="542.267" y="504.924" fill="#FFF" font-size="14"> </text><text x="546.156" y="504.924" fill="#FFF" font-size="14" textLength="19.462">the</text><text x="384.271" y="522.533" fill="#FFF" font-size="14" textLength="63.827">scheduled</text><text x="448.098" y="522.533" fill="#FFF" font-size="14"> </text><text x="451.988" y="522.533" fill="#FFF" font-size="14" textLength="25.683">jobs</text><text x="477.67" y="522.533" fill="#FFF" font-size="14"> </text><text x="481.56" y="522.533" fill="#FFF" font-size="14" textLength="66.165">dashboard</text><text x="419.127" y="540.143" fill="#FFF" font-size="14" textLength="52.931">[detailed</text><text x="472.058" y="540.143" fill="#FFF" font-size="14"> </text><text x="475.948" y="540.143" fill="#FFF" font-size="14" textLength="10.896">in</text><text x="486.844" y="540.143" fill="#FFF" font-size="14"> </text><text x="490.734" y="540.143" fill="#FFF" font-size="14" textLength="22.135">'3.1</text><text x="349.5" y="557.Line truncated

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 42 KiB

@@ -13,11 +13,13 @@ Container_Boundary(wb, "Web Application 2.1") {
Component(bookReader, "Book Reading", "FastEndpoints + JavaScript", "Serves the book reader view and proxies the reading manifest, section and resource endpoints to the API")
Component(scheduler, "Scheduler", "FastEndpoints + JavaScript", "Serves the scheduled jobs dashboard, proxies the scheduled job endpoints to the API, and plots the executions of the scheduled job tasks over time")
Component(admin, "Administration", "ASP.NET MVC Controllers", "Handles system administration and configuration")
Component(users, "User Management", "ASP.NET MVC Controllers", "Handles authentication and user management")
Component(clientJs, "Client-Side Logic", "JavaScript", "Handles dynamic page updates, persistent media playback, and the book reader (table of contents, page navigation, font size)")
Component(clientJs, "Client-Side Logic", "JavaScript", "Handles dynamic page updates, persistent media playback, the book reader (table of contents, page navigation, font size), and the scheduled jobs dashboard (job type filters, execution graph, live hub updates)")
Component(httpClient, "API HTTP Client", "C# TypedHttpClient", "Handles communication with the API server")
}
@@ -25,14 +27,17 @@ Container_Boundary(wb, "Web Application 2.1") {
Rel(fileSystem, httpClient, "Uses")
Rel(library, httpClient, "Uses")
Rel(bookReader, httpClient, "Uses")
Rel(scheduler, httpClient, "Uses")
Rel(admin, httpClient, "Uses")
Rel(users, httpClient, "Uses")
Rel(httpClient, api, "Makes API calls to", "JSON/HTTPS")
Rel(clientJs, fileSystem, "Makes AJAX calls to")
Rel(clientJs, library, "Makes AJAX calls to")
Rel(clientJs, bookReader, "Makes AJAX calls to")
Rel(clientJs, scheduler, "Makes AJAX calls to")
Rel(clientJs, admin, "Makes AJAX calls to")
Rel(clientJs, users, "Makes AJAX calls to")
Rel(clientJs, api, "Receives scheduled jobs and execution updates from the scheduled jobs hub", "SignalR")
caption [Component] Lumina - Web Application Client 2.1 (Lumina.Presentation.Web)
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1237px;height:1166px;background:#FFFFFF;" width="1237px" height="1166px" viewBox="0 0 1237 1166" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="418.99" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Lumina Web Application Client 2.1</text></g><!--cluster wb--><g class="cluster" data-qualified-name="wb" id="ent0002" data-source-line="1666"><rect x="7" y="45.609" width="1216" height="654" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="538.992" y="64.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="583.998" y="80.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="23" y="355.109" width="219.992" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="37.41" y="381.719" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="64.973" y="381.719" fill="#000" font-size="16" font-weight="700"> </text><text x="69.418" y="381.719" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="126.34" y="381.719" fill="#000" font-size="16" font-weight="700"> </text><text x="130.785" y="381.719" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="58.313" y="397.691" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="112.992" y="397.691" fill="#000" font-size="12" font-style="italic"> </text><text x="116.326" y="397.691" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="142.992" y="397.691" fill="#000" font-size="12" font-style="italic"> </text><text x="146.326" y="397.691" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="131.051" y="414.861" fill="#000" font-size="14"> </text><text x="37.672" y="432.471" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="89.038" y="432.471" fill="#000" font-size="14"> </text><text x="92.927" y="432.471" fill="#000" font-size="14" textLength="17.896">file</text><text x="110.824" y="432.471" fill="#000" font-size="14"> </text><text x="114.713" y="432.471" fill="#000" font-size="14" textLength="44.338">system</text><text x="159.051" y="432.471" fill="#000" font-size="14"> </text><text x="162.941" y="432.471" fill="#000" font-size="14" textLength="65.379">operations</text><text x="33" y="450.08" fill="#000" font-size="14" textLength="55.262">including</text><text x="88.262" y="450.08" fill="#000" font-size="14"> </text><text x="92.151" y="450.08" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="133.386" y="450.08" fill="#000" font-size="14"> </text><text x="137.275" y="450.08" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="205.744" y="450.08" fill="#000" font-size="14"> </text><text x="209.634" y="450.08" fill="#000" font-size="14" textLength="23.358">and</text><text x="90.589" y="467.689" fill="#000" font-size="14" textLength="24.896">files</text><text x="115.486" y="467.689" fill="#000" font-size="14"> </text><text x="119.375" y="467.689" fill="#000" font-size="14" textLength="56.027">browsing</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="278.5" y="337.609" width="210.661" height="160.875" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="305.588" y="364.219" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="359.831" y="364.219" fill="#000" font-size="16" font-weight="700"> </text><text x="364.276" y="364.219" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="309.147" y="380.191" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="363.827" y="380.191" fill="#000" font-size="12" font-style="italic"> </text><text x="367.161" y="380.191" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="393.827" y="380.191" fill="#000" font-size="12" font-style="italic"> </text><text x="397.161" y="380.191" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="381.886" y="397.361" fill="#000" font-size="14"> </text><text x="293.948" y="414.971" fill="#000" font-size="14" textLength="57.593">Manages</text><text x="351.541" y="414.971" fill="#000" font-size="14"> </text><text x="355.431" y="414.971" fill="#000" font-Line truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1697px;height:1281px;background:#FFFFFF;" width="1697px" height="1281px" viewBox="0 0 1697 1281" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="649.188" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Lumina Web Application Client 2.1</text></g><!--cluster wb--><g class="cluster" data-qualified-name="wb" id="ent0002" data-source-line="1666"><rect x="7" y="45.609" width="1468" height="769" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="664.992" y="64.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="709.998" y="80.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="23" y="416.609" width="219.992" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="37.41" y="443.219" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="64.973" y="443.219" fill="#000" font-size="16" font-weight="700"> </text><text x="69.418" y="443.219" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="126.34" y="443.219" fill="#000" font-size="16" font-weight="700"> </text><text x="130.785" y="443.219" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="58.313" y="459.191" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="112.992" y="459.191" fill="#000" font-size="12" font-style="italic"> </text><text x="116.326" y="459.191" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="142.992" y="459.191" fill="#000" font-size="12" font-style="italic"> </text><text x="146.326" y="459.191" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="131.051" y="476.361" fill="#000" font-size="14"> </text><text x="37.672" y="493.971" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="89.038" y="493.971" fill="#000" font-size="14"> </text><text x="92.927" y="493.971" fill="#000" font-size="14" textLength="17.896">file</text><text x="110.824" y="493.971" fill="#000" font-size="14"> </text><text x="114.713" y="493.971" fill="#000" font-size="14" textLength="44.338">system</text><text x="159.051" y="493.971" fill="#000" font-size="14"> </text><text x="162.941" y="493.971" fill="#000" font-size="14" textLength="65.379">operations</text><text x="33" y="511.58" fill="#000" font-size="14" textLength="55.262">including</text><text x="88.262" y="511.58" fill="#000" font-size="14"> </text><text x="92.151" y="511.58" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="133.386" y="511.58" fill="#000" font-size="14"> </text><text x="137.275" y="511.58" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="205.744" y="511.58" fill="#000" font-size="14"> </text><text x="209.634" y="511.58" fill="#000" font-size="14" textLength="23.358">and</text><text x="90.589" y="529.189" fill="#000" font-size="14" textLength="24.896">files</text><text x="115.486" y="529.189" fill="#000" font-size="14"> </text><text x="119.375" y="529.189" fill="#000" font-size="14" textLength="56.027">browsing</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="278.5" y="399.109" width="210.661" height="160.875" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="305.588" y="425.719" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="359.831" y="425.719" fill="#000" font-size="16" font-weight="700"> </text><text x="364.276" y="425.719" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="309.147" y="441.691" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="363.827" y="441.691" fill="#000" font-size="12" font-style="italic"> </text><text x="367.161" y="441.691" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="393.827" y="441.691" fill="#000" font-size="12" font-style="italic"> </text><text x="397.161" y="441.691" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="381.886" y="458.861" fill="#000" font-size="14"> </text><text x="293.948" y="476.471" fill="#000" font-size="14" textLength="57.593">Manages</text><text x="351.541" y="476.471" fill="#000" font-size="14"> </text><text x="355.431" y="476.471" fill="#000" fontLine truncated

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 46 KiB

@@ -21,6 +21,8 @@ Container_Boundary(api, "API Server 2.2") {
Component(readerPlugins, "Book Reader Plugins", "Lumina.Plugins.Epub, Lumina.Plugins.Pdf", "Decode a book format into a normalized reading document (spine, table of contents, sections, resources), loaded into the host by the plugin loader [detailed in '4.2 code-book-reading-diagram.puml']")
Component(scheduledJobs, "Scheduled Jobs 3.2.3", "Application + Infrastructure services", "Lets administrators schedule the one off or recurring execution of maintenance tasks (media library scans, temporary files cleanup); a background scheduler runs the tasks on their schedules and the scheduled jobs hub broadcasts the jobs and their executions [detailed in '4.3 code-scheduler-diagram.puml']")
Component(repositories, "Repositories", "EF Core", "Provides data access abstraction for domain entities")
}
@@ -35,16 +37,20 @@ Rel(endpoints, mediaManagement, "Uses")
Rel(endpoints, userManagement, "Uses")
Rel(endpoints, fileSystem, "Uses")
Rel(endpoints, bookReading, "Uses")
Rel(endpoints, scheduledJobs, "Uses")
Rel(mediaManagement, repositories, "Uses")
Rel(userManagement, repositories, "Uses")
Rel(fileSystem, repositories, "Uses")
Rel(backgroundServices, mediaManagement, "Uses")
Rel(scheduledJobs, repositories, "Uses")
Rel(repositories, db, "Reads from and writes to", "SQL")
Rel(mediaManagement, metadataServices, "Retrieves metadata from", "HTTPS")
Rel(bookReading, readerPlugins, "Resolves and invokes")
Rel(bookReading, repositories, "Reads the per-library reader enablement")
Rel(bookReading, readCache, "Extracts into and serves from", "File system")
Rel(readerPlugins, readCache, "Extracts into", "File system")
Rel(scheduledJobs, backgroundServices, "Queues the media library scans of its ScanMediaLibraries task")
Rel(scheduledJobs, readCache, "Empties with its CleanTemporaryFiles task", "File system")
caption [Component] Lumina - API Server 2.2 (Lumina.Presentation.Api)
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1398px;height:1604px;background:#FFFFFF;" width="1398px" height="1604px" viewBox="0 0 1398 1604" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="540.664" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Lumina API Server 2.2</text></g><!--cluster api--><g class="cluster" data-qualified-name="api" id="ent0002" data-source-line="1666"><rect x="7" y="269.609" width="957" height="862" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="431.688" y="288.219" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="454.498" y="304.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="257.5" y="351.109" width="206.758" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="306.215" y="377.719" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="332.887" y="377.719" fill="#000" font-size="16" font-weight="700"> </text><text x="337.332" y="377.719" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="319.189" y="393.691" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="358.934" y="410.861" fill="#000" font-size="14"> </text><text x="267.5" y="428.471" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="321.969" y="428.471" fill="#000" font-size="14"> </text><text x="325.858" y="428.471" fill="#000" font-size="14" textLength="37.338">REST</text><text x="363.196" y="428.471" fill="#000" font-size="14"> </text><text x="367.086" y="428.471" fill="#000" font-size="14" textLength="22.565">API</text><text x="389.651" y="428.471" fill="#000" font-size="14"> </text><text x="393.541" y="428.471" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="275.272" y="446.08" fill="#000" font-size="14" textLength="16.338">for</text><text x="291.61" y="446.08" fill="#000" font-size="14"> </text><text x="295.5" y="446.08" fill="#000" font-size="14" textLength="38.131">media</text><text x="333.631" y="446.08" fill="#000" font-size="14"> </text><text x="337.521" y="446.08" fill="#000" font-size="14" textLength="81.717">management</text><text x="419.237" y="446.08" fill="#000" font-size="14"> </text><text x="423.127" y="446.08" fill="#000" font-size="14" textLength="23.358">and</text><text x="330.145" y="463.689" fill="#000" font-size="14" textLength="61.469">streaming</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="504.5" y="624.109" width="174.889" height="145.781" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="539.929" y="650.719" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="585.272" y="650.719" fill="#000" font-size="16" font-weight="700"> </text><text x="589.718" y="650.719" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="543.046" y="670.844" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="543.262" y="686.816" fill="#000" font-size="12" textLength="44.684" font-style="italic">[Domain</text><text x="587.945" y="686.816" fill="#000" font-size="12" font-style="italic"> </text><text x="591.279" y="686.816" fill="#000" font-size="12" textLength="49.348" font-style="italic">Services]</text><text x="590" y="703.986" fill="#000" font-size="14"> </text><text x="518.8" y="721.596" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="570.165" y="721.596" fill="#000" font-size="14"> </text><text x="574.055" y="721.596" fill="#000" font-size="14" textLength="38.131">media</text><text x="612.186" y="721.596" fill="#000" font-size="14"> </text><text x="616.075" y="721.596" fill="#000" font-size="14" textLength="49.014">libraries</text><text x="514.5" y="739.205" fill="#000" font-size="14" textLength="65.379">operations</text><text x="579.879" y="739.205" fill="#000" font-size="14"> </text><text x="583.769" y="739.205" fill="#000" font-size="14" textLength="23.358">and</text><text x="607.127" y="739.205" fill="#000" font-size="14"> </text><text x="611.017" y="739.205" fill="#000" font-size="14" textLength="58.372">metadata</text><text x="551.086" y="756.814" fill="#000" font-size="14" textLength="81.717">management</text></g><!--entity userManagement--><g class="entity" data-qualified-name="api.userManagement" id="ent0005" data-source-line="78">Line truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1223px;height:2192px;background:#FFFFFF;" width="1223px" height="2192px" viewBox="0 0 1223 2192" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="453.259" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Lumina API Server 2.2</text></g><!--cluster api--><g class="cluster" data-qualified-name="api" id="ent0002" data-source-line="1666"><rect x="25.19" y="269.609" width="780" height="1444.5" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="361.378" y="288.219" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="384.188" y="304.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="163.69" y="323.609" width="206.758" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="212.405" y="350.219" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="239.077" y="350.219" fill="#000" font-size="16" font-weight="700"> </text><text x="243.522" y="350.219" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="225.379" y="366.191" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="265.124" y="383.361" fill="#000" font-size="14"> </text><text x="173.69" y="400.971" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="228.159" y="400.971" fill="#000" font-size="14"> </text><text x="232.048" y="400.971" fill="#000" font-size="14" textLength="37.338">REST</text><text x="269.386" y="400.971" fill="#000" font-size="14"> </text><text x="273.276" y="400.971" fill="#000" font-size="14" textLength="22.565">API</text><text x="295.841" y="400.971" fill="#000" font-size="14"> </text><text x="299.731" y="400.971" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="181.462" y="418.58" fill="#000" font-size="14" textLength="16.338">for</text><text x="197.8" y="418.58" fill="#000" font-size="14"> </text><text x="201.69" y="418.58" fill="#000" font-size="14" textLength="38.131">media</text><text x="239.821" y="418.58" fill="#000" font-size="14"> </text><text x="243.711" y="418.58" fill="#000" font-size="14" textLength="81.717">management</text><text x="325.427" y="418.58" fill="#000" font-size="14"> </text><text x="329.317" y="418.58" fill="#000" font-size="14" textLength="23.358">and</text><text x="236.335" y="436.189" fill="#000" font-size="14" textLength="61.469">streaming</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="317.69" y="1340.609" width="174.889" height="145.781" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="353.119" y="1367.219" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="398.462" y="1367.219" fill="#000" font-size="16" font-weight="700"> </text><text x="402.908" y="1367.219" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="356.236" y="1387.344" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="356.452" y="1403.316" fill="#000" font-size="12" textLength="44.684" font-style="italic">[Domain</text><text x="401.135" y="1403.316" fill="#000" font-size="12" font-style="italic"> </text><text x="404.469" y="1403.316" fill="#000" font-size="12" textLength="49.348" font-style="italic">Services]</text><text x="403.19" y="1420.486" fill="#000" font-size="14"> </text><text x="331.99" y="1438.096" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="383.355" y="1438.096" fill="#000" font-size="14"> </text><text x="387.245" y="1438.096" fill="#000" font-size="14" textLength="38.131">media</text><text x="425.376" y="1438.096" fill="#000" font-size="14"> </text><text x="429.265" y="1438.096" fill="#000" font-size="14" textLength="49.014">libraries</text><text x="327.69" y="1455.705" fill="#000" font-size="14" textLength="65.379">operations</text><text x="393.069" y="1455.705" fill="#000" font-size="14"> </text><text x="396.959" y="1455.705" fill="#000" font-size="14" textLength="23.358">and</text><text x="420.317" y="1455.705" fill="#000" font-size="14"> </text><text x="424.207" y="1455.705" fill="#000" font-size="14" textLength="58.372">metadata</text><text x="364.276" y="1473.314" fill="#000" font-size="14" textLength="81.717">management</text></g><!--entity userManagement--><g class="entity" data-qualified-name="api.userManagement" Line truncated

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 65 KiB

@@ -0,0 +1,442 @@
@startuml Scheduled Jobs Code
!include <C4/C4_Component>
LAYOUT_WITH_LEGEND()
title Code diagram for Scheduled Jobs 3.2.3
skinparam class {
BackgroundColor White
BorderColor Black
}
' ============================== DOMAIN AGGREGATE ==============================
class ScheduledJob {
- _currentExecutionRunId: Optional<Guid>
+ Name: string
+ TaskType: ScheduledTaskType
+ Schedule: Schedule
+ Status: ScheduledJobStatus
+ OwnerUserId: UserId
+ LastStartedOnUtc: Optional<DateTime>
+ LastCompletedOnUtc: Optional<DateTime>
+ {static} Create(name: string, taskType: ScheduledTaskType, schedule: Schedule, ownerUserId: UserId): Result<ScheduledJob>
+ Add(): Result<Success>
+ StartCycle(): Result<Success>
+ StopCycle(): Result<Success>
+ Fire(): Result<Success>
+ Remove(): Result<Success>
+ MarkExecutionStarted(isCycleRun: bool): Result<Success>
+ MarkExecutionCompleted(isCycleRun: bool): Result<Success>
}
note right of ScheduledJob
Aggregate root of the scheduling bounded context. Drives the
life cycle of a scheduled job and of each execution of its task
through domain events. The private _currentExecutionRunId tracks
the run of the task currently executing, so that only the worker
that marked the run as started can complete it.
end note
' ============================== DOMAIN VALUE OBJECTS AND EVENTS ==============================
abstract class Schedule {
+ ScheduleType: ScheduleType
+ {abstract} GetDelayUntilNextExecution(utcNow: DateTime, timeZone: TimeZoneInfo): TimeSpan
}
class IntervalSchedule {
+ IntervalMinutes: int
+ {static} Create(intervalMinutes: int): Result<IntervalSchedule>
}
class DailySchedule {
+ Hour: int
+ Minute: int
+ {static} Create(hour: int, minute: int): Result<DailySchedule>
}
class ScheduledJobId {
+ Value: Guid
+ {static} CreateUnique(): ScheduledJobId
+ {static} Create(value: Guid): ScheduledJobId
}
class ScheduledJobAddedDomainEvent
class ScheduledJobCycleStartedDomainEvent
class ScheduledJobCycleStoppedDomainEvent
class ScheduledJobExecutionStartedDomainEvent {
+ RunId: Guid
+ TaskType: ScheduledTaskType
+ IsCycleRun: bool
+ StartedOnUtc: DateTime
}
class ScheduledJobExecutionCompletedDomainEvent {
+ RunId: Guid
+ IsCycleRun: bool
+ CompletedOnUtc: DateTime
}
class ScheduledJobExecutionStoppedDomainEvent
class ScheduledJobFiredDomainEvent
class ScheduledJobRemovedDomainEvent
' ============================== APPLICATION CONTRACTS ==============================
interface IScheduledJobScheduler {
+ StartCycleAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
+ StopCycleAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
+ RunOnceAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
}
interface IScheduledJobNotifier {
+ SendScheduledJobsAsync(scheduledJobs: IReadOnlyList<ScheduledJobResponse>, token: CancellationToken): Task
+ SendScheduledJobExecutionStartedAsync(execution: ScheduledJobExecutionResponse, token: CancellationToken): Task
+ SendScheduledJobExecutionCompletedAsync(execution: ScheduledJobExecutionResponse, token: CancellationToken): Task
}
interface IScheduledJobRepository {
+ GetByIdAsync(id: Guid, token: CancellationToken): Task<Result<ScheduledJobEntity?>>
+ GetAllAsync(token: CancellationToken): Task<Result<IEnumerable<ScheduledJobEntity>>>
+ GetActiveOrRunningAsync(token: CancellationToken): Task<Result<IEnumerable<ScheduledJobEntity>>>
+ InsertAsync(entity: ScheduledJobEntity, token: CancellationToken): Task<Result<Created>>
+ UpdateAsync(entity: ScheduledJobEntity, token: CancellationToken): Task<Result<Updated>>
+ DeleteByIdAsync(id: Guid, token: CancellationToken): Task<Result<Deleted>>
}
interface IScheduledJobExecutionRepository {
+ GetByIdAsync(id: Guid, token: CancellationToken): Task<Result<ScheduledJobExecutionEntity?>>
+ GetOpenByScheduledJobIdAsync(scheduledJobId: Guid, token: CancellationToken): Task<Result<ScheduledJobExecutionEntity?>>
+ GetByTimeRangeAsync(fromUtc: DateTime, toUtc: DateTime, token: CancellationToken): Task<Result<IEnumerable<ScheduledJobExecutionEntity>>>
+ InsertAsync(entity: ScheduledJobExecutionEntity, token: CancellationToken): Task<Result<Created>>
+ UpdateAsync(entity: ScheduledJobExecutionEntity, token: CancellationToken): Task<Result<Updated>>
+ DeleteByScheduledJobIdAsync(scheduledJobId: Guid, token: CancellationToken): Task<Result<Success>>
}
' ============================== APPLICATION HANDLERS ==============================
class AddScheduledJobCommandHandler {
+ HandleAsync(command: AddScheduledJobCommand, token: CancellationToken): Task<Result<ScheduledJobResponse>>
}
class StartScheduledJobCommandHandler {
+ HandleAsync(command: StartScheduledJobCommand, token: CancellationToken): Task<Result<ScheduledJobResponse>>
}
class StopScheduledJobCommandHandler {
+ HandleAsync(command: StopScheduledJobCommand, token: CancellationToken): Task<Result<ScheduledJobResponse>>
}
class FireScheduledJobCommandHandler {
+ HandleAsync(command: FireScheduledJobCommand, token: CancellationToken): Task<Result<ScheduledJobResponse>>
}
class RemoveScheduledJobCommandHandler {
+ HandleAsync(command: RemoveScheduledJobCommand, token: CancellationToken): Task<Result<Success>>
}
class GetScheduledJobsQueryHandler {
+ HandleAsync(query: GetScheduledJobsQuery, token: CancellationToken): Task<Result<IEnumerable<ScheduledJobResponse>>>
}
class GetScheduledJobHistoryQueryHandler {
+ HandleAsync(query: GetScheduledJobHistoryQuery, token: CancellationToken): Task<Result<IEnumerable<ScheduledJobExecutionResponse>>>
}
' ============================== DOMAIN EVENT HANDLERS ==============================
class ScheduledJobAddedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobAddedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobCycleStartedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobCycleStartedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobCycleStoppedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobCycleStoppedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobExecutionStartedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobExecutionStartedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobExecutionCompletedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobExecutionCompletedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobExecutionStoppedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobExecutionStoppedDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobFiredDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobFiredDomainEvent, token: CancellationToken): ValueTask
}
class ScheduledJobRemovedDomainEventHandler {
+ HandleAsync(domainEvent: ScheduledJobRemovedDomainEvent, token: CancellationToken): ValueTask
}
note bottom of ScheduledJobExecutionStartedDomainEventHandler
Updates the scheduled job to Running, inserts the open execution
history row, and notifies the SignalR clients about the started
execution.
end note
note bottom of ScheduledJobExecutionCompletedDomainEventHandler
Returns the scheduled job to Active after a cycle run, or completes
it after a one time execution, closes the execution history row,
and notifies the SignalR clients about the completed execution.
end note
' ============================== INFRASTRUCTURE - SCHEDULER ==============================
class ScheduledJobSchedulerJob {
- _serviceScopeFactory: IServiceScopeFactory
- _runtimeRegistry: IScheduledJobRuntimeRegistry
- _logger: ILogger
+ StartCycleAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
+ StopCycleAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
+ RunOnceAsync(scheduledJobId: ScheduledJobId, token: CancellationToken): Task
+ ExecuteAsync(stoppingToken: CancellationToken): Task
- ResumeActiveCyclesAsync(token: CancellationToken): Task
- RunCycleWorkerAsync(scheduledJobId: ScheduledJobId, runImmediately: bool, stoppingToken: CancellationToken): Task
- RunScheduledJobAsync(scheduledJobId: ScheduledJobId, isCycleRun: bool, token: CancellationToken): Task
- ExecuteScheduledJobRunAsync(scheduledJobId: ScheduledJobId, isCycleRun: bool, token: CancellationToken): Task
}
note right of ScheduledJobSchedulerJob
Background service (registered as IScheduledJobScheduler and hosted)
that resumes the active execution cycles at startup, runs each cycle
worker on its schedule through PeriodicTimer, guards each execution
against overlapping runs, and publishes the started and completed
domain events of every run through the EventualConsistencyMiddleware.
end note
interface IScheduledJobRuntimeRegistry {
+ TryStartCycle(scheduledJobId: ScheduledJobId, cycleCancellationTokenSource: CancellationTokenSource): bool
+ StopCycle(scheduledJobId: ScheduledJobId)
+ TryAcquireRunSlot(scheduledJobId: ScheduledJobId): bool
+ ReleaseRunSlot(scheduledJobId: ScheduledJobId)
}
class ScheduledJobRuntimeRegistry {
- _runtimeStates: ConcurrentDictionary<ScheduledJobId, ScheduledJobRuntimeState>
}
note right of ScheduledJobRuntimeRegistry
Holds the live runtime state of the scheduled jobs in memory: one
cancellation token source per execution cycle and one run slot per
scheduled job, so no two executions of the same task overlap.
end note
' ============================== INFRASTRUCTURE - TASK EXECUTORS ==============================
interface IScheduledTaskExecutorFactory {
+ CreateExecutor(taskType: ScheduledTaskType): IScheduledTaskExecutor
}
class ScheduledTaskExecutorFactory {
- _serviceProvider: IServiceProvider
+ CreateExecutor(taskType: ScheduledTaskType): IScheduledTaskExecutor
}
interface IScheduledTaskExecutor {
+ ExecutePayloadAsync(scheduledJob: ScheduledJob, token: CancellationToken): Task<Result<Success>>
}
class MediaLibraryScanTaskExecutor {
- _unitOfWork: IUnitOfWork
- _domainEventPublisher: IDomainEventPublisher
+ ExecutePayloadAsync(scheduledJob: ScheduledJob, token: CancellationToken): Task<Result<Success>>
}
note right of MediaLibraryScanTaskExecutor
Executes the ScanMediaLibraries task on behalf of the owner of the
scheduled job: queues a media library scan for every enabled and
unlocked library that is not already being scanned, and lets the
media library scanning subsystem process them.
end note
class TemporaryFilesCleanupTaskExecutor {
+ ExecutePayloadAsync(scheduledJob: ScheduledJob, token: CancellationToken): Task<Result<Success>>
}
note right of TemporaryFilesCleanupTaskExecutor
Executes the CleanTemporaryFiles task: empties the temporary reading
cache directory of the application, failing closed when the directory
cannot be resolved safely inside the application base directory.
end note
' ============================== INFRASTRUCTURE - NOTIFICATIONS ==============================
class ScheduledJobNotifier {
- _hubContext: IHubContext<ScheduledJobsHub, IScheduledJobsClient>
+ SendScheduledJobsAsync(scheduledJobs: IReadOnlyList<ScheduledJobResponse>, token: CancellationToken): Task
+ SendScheduledJobExecutionStartedAsync(execution: ScheduledJobExecutionResponse, token: CancellationToken): Task
+ SendScheduledJobExecutionCompletedAsync(execution: ScheduledJobExecutionResponse, token: CancellationToken): Task
}
class ScheduledJobsHub {
- _serviceScopeFactory: IServiceScopeFactory
+ OnConnectedAsync(): Task
}
note top of ScheduledJobsHub
SignalR hub that broadcasts the state of the scheduled jobs and of
their executions to the connected administrator clients. Every
connection must belong to an administrator account, and is aborted
otherwise.
end note
interface IScheduledJobsClient {
+ ReceiveScheduledJobsAsync(scheduledJobs: IReadOnlyList<ScheduledJobResponse>): Task
+ ScheduledJobExecutionStartedAsync(execution: ScheduledJobExecutionResponse): Task
+ ScheduledJobExecutionCompletedAsync(execution: ScheduledJobExecutionResponse): Task
}
' ============================== DATA ACCESS - REPOSITORY IMPLEMENTATIONS ==============================
interface IUnitOfWork {
+ ScheduledJobRepository: IScheduledJobRepository
+ ScheduledJobExecutionRepository: IScheduledJobExecutionRepository
+ SaveChangesAsync(token: CancellationToken): Task
}
class ScheduledJobRepository
class ScheduledJobExecutionRepository
' ============================== STORAGE MODEL ==============================
class ScheduledJobEntity {
+ Id: Guid
+ Name: string
+ TaskType: ScheduledTaskType
+ ScheduleType: ScheduleType
+ IntervalMinutes: int?
+ Hour: int?
+ Minute: int?
+ Status: ScheduledJobStatus
+ OwnerUserId: Guid
+ LastStartedOnUtc: DateTime?
+ LastCompletedOnUtc: DateTime?
}
class ScheduledJobExecutionEntity {
+ Id: Guid
+ ScheduledJobId: Guid
+ TaskType: ScheduledTaskType
+ IsCycleRun: bool
+ StartedOnUtc: DateTime
+ CompletedOnUtc: DateTime?
}
note bottom of ScheduledJobEntity
Stored in the ScheduledJobs table, whose enums are persisted as
strings and which is indexed by status so the scheduler can quickly
find the active and running cycles at startup.
end note
note bottom of ScheduledJobExecutionEntity
Stored in the ScheduledJobExecutions table, indexed by the started
time and the scheduled job id for fast history queries and cleanup.
end note
' ============================== AGGREGATE AND VALUE OBJECT RELATIONSHIPS ==============================
Schedule <|-- IntervalSchedule : inherits
Schedule <|-- DailySchedule : inherits
ScheduledJob *-- Schedule : has one
ScheduledJob o-- ScheduledJobId : identified by
ScheduledJob ..> ScheduledJobAddedDomainEvent : raises
ScheduledJob ..> ScheduledJobCycleStartedDomainEvent : raises
ScheduledJob ..> ScheduledJobCycleStoppedDomainEvent : raises
ScheduledJob ..> ScheduledJobExecutionStartedDomainEvent : raises
ScheduledJob ..> ScheduledJobExecutionCompletedDomainEvent : raises
ScheduledJob ..> ScheduledJobExecutionStoppedDomainEvent : raises
ScheduledJob ..> ScheduledJobFiredDomainEvent : raises
ScheduledJob ..> ScheduledJobRemovedDomainEvent : raises
' ============================== APPLICATION CONTRACT RELATIONSHIPS ==============================
IScheduledJobScheduler <|.. ScheduledJobSchedulerJob : implements
IScheduledJobNotifier <|.. ScheduledJobNotifier : implements
IScheduledJobRepository <|.. ScheduledJobRepository : implements
IScheduledJobExecutionRepository <|.. ScheduledJobExecutionRepository : implements
' ============================== COMMAND AND QUERY HANDLER RELATIONSHIPS ==============================
AddScheduledJobCommandHandler --> IScheduledJobRepository : inserts
AddScheduledJobCommandHandler --> Schedule : creates
AddScheduledJobCommandHandler ..> ScheduledJob : creates
StartScheduledJobCommandHandler --> IScheduledJobRepository : updates status
StartScheduledJobCommandHandler ..> ScheduledJob : starts the cycle
StopScheduledJobCommandHandler --> IScheduledJobRepository : updates status
StopScheduledJobCommandHandler ..> ScheduledJob : stops the cycle
StopScheduledJobCommandHandler --> IScheduledJobScheduler : stops the running cycle
FireScheduledJobCommandHandler --> IScheduledJobRepository : reads the job
FireScheduledJobCommandHandler ..> ScheduledJob : fires the task once
RemoveScheduledJobCommandHandler --> IScheduledJobRepository : deletes the job
RemoveScheduledJobCommandHandler --> IScheduledJobExecutionRepository : deletes the executions
RemoveScheduledJobCommandHandler --> IScheduledJobScheduler : stops the running cycle
GetScheduledJobsQueryHandler --> IScheduledJobRepository : reads all
GetScheduledJobHistoryQueryHandler --> IScheduledJobExecutionRepository : reads by time range
' ============================== DOMAIN EVENT HANDLER RELATIONSHIPS ==============================
ScheduledJobAddedDomainEventHandler --> IScheduledJobNotifier : notifies
ScheduledJobCycleStartedDomainEventHandler --> IScheduledJobScheduler : starts the cycle
ScheduledJobCycleStartedDomainEventHandler --> IScheduledJobNotifier : notifies
ScheduledJobCycleStoppedDomainEventHandler --> IScheduledJobNotifier : notifies
ScheduledJobFiredDomainEventHandler --> IScheduledJobScheduler : fires the task once
ScheduledJobRemovedDomainEventHandler --> IScheduledJobNotifier : notifies
ScheduledJobExecutionStartedDomainEventHandler --> IScheduledJobRepository : updates to Running
ScheduledJobExecutionStartedDomainEventHandler --> IScheduledJobExecutionRepository : inserts the execution
ScheduledJobExecutionStartedDomainEventHandler --> IScheduledJobNotifier : notifies the started execution
ScheduledJobExecutionCompletedDomainEventHandler --> IScheduledJobRepository : restores or completes
ScheduledJobExecutionCompletedDomainEventHandler --> IScheduledJobExecutionRepository : closes the execution
ScheduledJobExecutionCompletedDomainEventHandler --> IScheduledJobNotifier : notifies the completed execution
ScheduledJobExecutionStoppedDomainEventHandler --> IScheduledJobExecutionRepository : closes the open execution
ScheduledJobExecutionStoppedDomainEventHandler --> IScheduledJobNotifier : notifies
' ============================== SCHEDULER EXECUTION RELATIONSHIPS ==============================
ScheduledJobSchedulerJob --> IScheduledJobRuntimeRegistry : tracks cycles and run slots
ScheduledJobSchedulerJob --> IScheduledJobRepository : loads jobs and schedules
ScheduledJobSchedulerJob ..> ScheduledJobExecutionStartedDomainEvent : publishes
ScheduledJobSchedulerJob ..> ScheduledJobExecutionCompletedDomainEvent : publishes
ScheduledJobSchedulerJob ..> ScheduledJob : marks the execution started and completed
IScheduledJobRuntimeRegistry <|.. ScheduledJobRuntimeRegistry : implements
ScheduledJobSchedulerJob --> IScheduledTaskExecutorFactory : creates the task executor
IScheduledTaskExecutorFactory <|.. ScheduledTaskExecutorFactory : implements
ScheduledTaskExecutorFactory ..> MediaLibraryScanTaskExecutor : creates for ScanMediaLibraries
ScheduledTaskExecutorFactory ..> TemporaryFilesCleanupTaskExecutor : creates for CleanTemporaryFiles
IScheduledTaskExecutor <|.. MediaLibraryScanTaskExecutor : implements
IScheduledTaskExecutor <|.. TemporaryFilesCleanupTaskExecutor : implements
MediaLibraryScanTaskExecutor --> IUnitOfWork : queues the library scans of the owner
' ============================== NOTIFICATION RELATIONSHIPS ==============================
IScheduledJobNotifier <|.. ScheduledJobNotifier : implements
ScheduledJobNotifier --> ScheduledJobsHub : broadcasts to SignalR clients
ScheduledJobsHub --> IScheduledJobsClient : typed client contract
' ============================== STORAGE RELATIONSHIPS ==============================
ScheduledJobRepository --> ScheduledJobEntity : persists
ScheduledJobExecutionRepository --> ScheduledJobExecutionEntity : persists
caption [Code] Lumina - Scheduled Jobs 3.2.3
footer The code diagram for the Scheduled Jobs 3.2.3 - created with PlantUML
@enduml
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:6534px;height:3023px;background:#FFFFFF;" width="6534px" height="3023px" viewBox="0 0 6534 3023" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="3132.555" y="24.533" fill="#000" font-size="14" textLength="262.179" font-weight="700">Code diagram for Scheduled Jobs 3.2.3</text></g><!--class ScheduledJob--><g class="entity" data-qualified-name="ScheduledJob" id="ent0001" data-source-line="13"><rect x="2808" y="1456.609" width="265.647" height="470.625" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2892.205" cy="1472.609" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M2894.971,1468.484 Q2895.127,1468.266 2895.314,1468.156 Q2895.502,1468.047 2895.721,1468.047 Q2896.096,1468.047 2896.33,1468.313 Q2896.564,1468.563 2896.564,1469.172 L2896.564,1470.625 Q2896.564,1471.234 2896.33,1471.5 Q2896.096,1471.766 2895.721,1471.766 Q2895.377,1471.766 2895.174,1471.563 Q2894.971,1471.375 2894.861,1470.859 Q2894.814,1470.5 2894.627,1470.313 Q2894.299,1469.938 2893.689,1469.719 Q2893.08,1469.5 2892.455,1469.5 Q2891.689,1469.5 2891.049,1469.828 Q2890.424,1470.156 2889.924,1470.906 Q2889.439,1471.656 2889.439,1472.688 L2889.439,1473.781 Q2889.439,1475.016 2890.33,1475.844 Q2891.221,1476.656 2892.814,1476.656 Q2893.752,1476.656 2894.408,1476.406 Q2894.799,1476.25 2895.221,1475.813 Q2895.486,1475.547 2895.627,1475.469 Q2895.783,1475.391 2895.986,1475.391 Q2896.314,1475.391 2896.564,1475.656 Q2896.83,1475.906 2896.83,1476.25 Q2896.83,1476.594 2896.486,1477 Q2895.986,1477.578 2895.189,1477.906 Q2894.111,1478.359 2892.814,1478.359 Q2891.299,1478.359 2890.096,1477.734 Q2889.111,1477.234 2888.424,1476.172 Q2887.736,1475.094 2887.736,1473.813 L2887.736,1472.656 Q2887.736,1471.328 2888.346,1470.188 Q2888.971,1469.031 2890.064,1468.422 Q2891.158,1467.797 2892.393,1467.797 Q2893.127,1467.797 2893.768,1467.969 Q2894.424,1468.125 2894.971,1468.484 Z " fill="#000"/><text x="2912.705" y="1478.338" fill="#000" font-size="14" textLength="88.737">ScheduledJob</text><line x1="2809" y1="1488.609" x2="3072.647" y2="1488.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PRIVATE_FIELD"><rect x="2816" y="1508.719" width="6" height="6" fill="none" style="stroke:#C82930;stroke-width:1;"/></g><text x="2828" y="1507.143" fill="#000" font-size="14" textLength="154.089">_currentExecutionRunId:</text><text x="2828" y="1524.752" fill="#000" font-size="14" textLength="98.068">Optional&lt;Guid></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1538.133" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1542.361" fill="#000" font-size="14" textLength="41.234">Name:</text><text x="2869.234" y="1542.361" fill="#000" font-size="14"> </text><text x="2873.124" y="1542.361" fill="#000" font-size="14" textLength="34.234">string</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1555.742" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1559.971" fill="#000" font-size="14" textLength="65.352">TaskType:</text><text x="2893.352" y="1559.971" fill="#000" font-size="14"> </text><text x="2897.241" y="1559.971" fill="#000" font-size="14" textLength="127.627">ScheduledTaskType</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1573.352" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1577.58" fill="#000" font-size="14" textLength="62.269">Schedule:</text><text x="2890.269" y="1577.58" fill="#000" font-size="14"> </text><text x="2894.158" y="1577.58" fill="#000" font-size="14" textLength="58.379">Schedule</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1590.961" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1595.189" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2871.579" y="1595.189" fill="#000" font-size="14"> </text><text x="2875.469" y="1595.189" fill="#000" font-size="14" textLength="128.427">ScheduledJobStatus</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1608.57" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1612.799" fill="#000" font-size="14" textLength="86.358">OwnerUserId:</text><text x="2914.358" y="1612.799" fill="#000" font-size="14"> </text><text x="2918.248" y="1612.799" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2819" cy="1634.984" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2828" y="1630.408" fill="#000" font-size="14" textLength="115.165">LaLine truncated

After

Width:  |  Height:  |  Size: 271 KiB

@@ -0,0 +1,12 @@
POST {{host}}/api/v1/scheduled-jobs
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"name": "Rescan media libraries",
"taskType": "ScanMediaLibraries",
"scheduleType": "DailyAtHourAndMinute",
"intervalMinutes": null,
"hour": 3,
"minute": 0
}
@@ -0,0 +1,2 @@
PUT {{host}}/api/v1/scheduled-jobs/{{$guid}}/fire
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/scheduled-jobs/history?from=2026-09-02T00%3A00%3A00.0000000Z&to=2026-09-03T00%3A00%3A00.0000000Z
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
GET {{host}}/api/v1/scheduled-jobs
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
DELETE {{host}}/api/v1/scheduled-jobs/{{$guid}}
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
PUT {{host}}/api/v1/scheduled-jobs/{{$guid}}/start
Authorization: Bearer {{ACCESS_TOKEN}}
@@ -0,0 +1,2 @@
PUT {{host}}/api/v1/scheduled-jobs/{{$guid}}/stop
Authorization: Bearer {{ACCESS_TOKEN}}
+2
View File
@@ -184,6 +184,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "architecture", "architectur
..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.svg = ..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.svg
..\docs\technical\architecture\4.2 code-book-reading-diagram.puml = ..\docs\technical\architecture\4.2 code-book-reading-diagram.puml
..\docs\technical\architecture\4.2 code-book-reading-diagram.svg = ..\docs\technical\architecture\4.2 code-book-reading-diagram.svg
..\docs\technical\architecture\4.3 code-scheduler-diagram.puml = ..\docs\technical\architecture\4.3 code-scheduler-diagram.puml
..\docs\technical\architecture\4.3 code-scheduler-diagram.svg = ..\docs\technical\architecture\4.3 code-scheduler-diagram.svg
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "architecture-knowledge-management", "architecture-knowledge-management", "{70B56088-6D3A-481E-9459-79AC6B16FEC1}"