sample_set/index.html less queries for job status

Store the result of the querye for the job status to avoid performing it
twice. While this may have been optimised automatically by a web2py
cache or similar mechanism, I feel like the code produced is easier to
read/underestand.
3 jobs from feature-s/more_efficient_job_status in 3 minutes and 9 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test Tools
passed #205923
test_tools

00:00:06

 
  Test Unit
passed #205924
web
test_server_unit

00:00:23

 
  Test Functional
failed #205925
docker x86_64
test_server_functional

00:02:39

 
Name Stage Failure
failed
test_server_functional Test Functional
2018-11-21 11:30:52 (8.98 MB/s) - '/usr/local/bin/gosu.asc' saved [543/543]

+ mktemp -d
+ export GNUPGHOME=/tmp/tmp.2URKMDD17S
+ gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
gpg: keybox '/tmp/tmp.2URKMDD17S/pubring.kbx' created
gpg: keyserver receive failed: No data
The command '/bin/sh -c set -x && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget cron unzip make python ipython python-enum34 python-requests git python-ijson libyajl2 python-cffi gnupg2 && rm -rf /var/lib/apt/lists/* && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" && gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc && chmod +x /usr/local/bin/gosu' returned a non-zero code: 2
ERROR: Job failed: exit status 1