Sybren A. Stüvel
426b2aab4d
Gracefully handle sleep schedules of deleted workers
...
Workers can be soft-deleted, which means that they stay in the database.
As such, foreign key constraints `ON DELETE CASCADE` do not trigger, and
thus their sleep schedule can still be active. This is now detected and
handled gracefully.
2023-02-09 11:18:38 +01:00
Sybren A. Stüvel
ab8ecc24cc
Cleanup: Add missing license specifiers
...
Add license specifiers to Go files that were missing them:
```
// SPDX-License-Identifier: GPL-3.0-or-later
```
No functional changes.
2022-07-25 16:08:07 +02:00
Sybren A. Stüvel
83467e4c60
Sleep schedule: store 'next check' timestamp in UTC
...
SQLite doesn't parse the timezone info, so timestamps should always be in
UTC.
2022-07-18 19:30:17 +02:00
Sybren A. Stüvel
d7b164133a
Sleep Scheduler implementation for the Manager
...
The Manager now has a sleep scheduler for Workers. The API and background
service work, but there is no web interface yet.
Manifest Task: T99397
2022-07-17 17:27:32 +02:00
Sybren A. Stüvel
627996525e
Manager: implement operations for getting & setting worker sleep schedule
...
This is just the API, no web interface yet.
Manifest Task: T99397
2022-07-16 16:00:25 +02:00