biothings / bte-auto-demos

A test server made to automate testing of demo queries and provide results over the web.
3 stars 1 forks source link

Use Bull job statuses to determine run completion #14

Closed tokebe closed 1 year ago

tokebe commented 2 years ago

Currently, when displaying the /demotests route, the server opens, reads, and parses every summary file to determine run completion. This is obviously very inefficient.

Thankfully, each run is scheduled through Bull, so we could instead just check that the Bull job is completed by getting its status. The jobID is demotests:${runStamp}, so it should be fairly convenient to get the appropriate job.

rjawesome commented 2 years ago

Working on this