Use celery tasks instead of systemd timers for periodic work; and add more tests
All checks were successful
Deploy to Server / deploy (push) Successful in 26s

This commit is contained in:
Joakim Hellsén 2026-04-08 03:23:18 +02:00
commit 66ea46cf23
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
25 changed files with 2133 additions and 104 deletions

View file

@ -17,9 +17,16 @@ logger: logging.Logger = logging.getLogger("ttvdrops.watch_imports")
class Command(BaseCommand):
"""Watch for JSON files in a directory and import them automatically."""
"""Watch for JSON files in a directory and import them automatically.
help = "Watch a directory for JSON files and import them automatically"
.. deprecated::
This command is superseded by the Celery Beat task
``twitch.tasks.scan_pending_twitch_files`` (runs every 10 s via
``ttvdrops-celery-beat.service``). Keep this command for ad-hoc use
or in environments that run without a Celery worker.
"""
help = "Watch a directory for JSON files and import them automatically (superseded by Celery Beat)"
requires_migrations_checks = True
def add_arguments(self, parser: CommandParser) -> None: