main.js add call to db.reload_status to worker

periodically request job statuses from the server if there are any
active jobs on the current page.

See #3579
9 jobs from feature-cs/3579-refresh-job-status in 10 seconds (queued for 13 minutes and 7 seconds)
latest
Status Job ID Name Coverage
  Test Tools
passed #208001
test_tools

00:00:06

 
  Test Quality
failed #208002
web
code_quality

00:00:03

 
  Test Unit
skipped #208003
web
test_browser_unit
skipped #208004
web
test_server_unit
 
  Deploy Review
skipped #208005
web
deploy_review
skipped #208006
web allowed to fail manual
stop_deploy_review
 
  Test Functional
skipped #208007
web
test_browser-functional
skipped #208008
docker x86_64
test_server_functional
 
  Test Functional External
skipped #208009
web
test_browser-functional-external
 
Name Stage Failure
failed
code_quality Test Quality
$ cp -p doc/analysis-example.vidjil browser/
$ make -C browser quality
make: Entering directory '/home/gitlab-runner/builds/ae9bf4d5/0/vidjil/vidjil/browser'
jshint --config jshintrc js/*.js
/bin/sh: 1: jshint: not found
Makefile:13: recipe for target 'quality' failed
make: *** [quality] Error 127
make: Leaving directory '/home/gitlab-runner/builds/ae9bf4d5/0/vidjil/vidjil/browser'
ERROR: Job failed: exit status 1