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).
This commit is contained in:
D. Berge
2022-05-01 21:26:10 +02:00
parent 6516896bae
commit af6e419aab
2 changed files with 5 additions and 0 deletions

View File

@@ -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"

2
lib/www/server/lib/qc/index.js Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/node
const fs = require('fs');
const YAML = require('yaml');
const vm = require('vm');