diff options
author | Florian Brandes <florian.brandes@posteo.de> | 2023-01-02 12:19:27 +0100 |
---|---|---|
committer | Florian Brandes <florian.brandes@posteo.de> | 2023-01-02 15:21:45 +0100 |
commit | 5b6881f4a0797cf7cc6c3350c4bc784a851e0124 (patch) | |
tree | 928db0c4a189dae0bf419a814128572d4f2b5f6c /nixos/modules/services/misc/paperless.nix | |
parent | 9ec889b4b81b5323afe0066a0b132fd2b4188cbe (diff) | |
download | nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar.gz nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar.bz2 nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar.lz nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar.xz nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.tar.zst nixpkgs-5b6881f4a0797cf7cc6c3350c4bc784a851e0124.zip |
nixos/paperless-ngx: fix startup order
The nixOS test failed sporadically with a timeout. This is due to a race condition in the startup of the scheduler vs the task-queue. The scheduler runs the migration scripts in "pre-start" and celery isn't available, yet. The celery worker (paperless-task-queue) was already started by systemd but was unable to connect (as the migration scripts from "pre-start" still ran). This fix adds the necessary "after" condition in the systemd worker unit and adds a test to "paperless" Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Diffstat (limited to 'nixos/modules/services/misc/paperless.nix')
-rw-r--r-- | nixos/modules/services/misc/paperless.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 33a8394dff2..54c53a01134 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -258,6 +258,7 @@ in PrivateNetwork = false; }; environment = env; + after = [ "paperless-scheduler.service" ]; }; # Reading the user-provided password file requires root access |