From af6e419aab83eceacd293570bdfd6fa253036215 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Sun, 1 May 2022 21:26:10 +0200 Subject: [PATCH] Run QCs from runner. When importing an old project, the first QC run could take a while and cause a bit of backlog, but during normal shooting it is expected that it will finish quite quickly (and this is monitored anyway). --- bin/runner.sh | 3 +++ lib/www/server/lib/qc/index.js | 2 ++ 2 files changed, 5 insertions(+) mode change 100644 => 100755 lib/www/server/lib/qc/index.js diff --git a/bin/runner.sh b/bin/runner.sh index 80977e1..edc725e 100755 --- a/bin/runner.sh +++ b/bin/runner.sh @@ -122,6 +122,9 @@ run $DOUGAL_ROOT/lib/www/server/queues/asaqc/index.js print_log "Run database housekeeping actions" run $BINDIR/housekeep_database.py +print_log "Run QCs" +run $DOUGAL_ROOT/lib/www/server/lib/qc/index.js + rm "$LOCKFILE" print_info "End run" diff --git a/lib/www/server/lib/qc/index.js b/lib/www/server/lib/qc/index.js old mode 100644 new mode 100755 index 50acc31..7f173aa --- a/lib/www/server/lib/qc/index.js +++ b/lib/www/server/lib/qc/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/node + const fs = require('fs'); const YAML = require('yaml'); const vm = require('vm');