superphy / spfy

Spfy: an integrated graph database for real-time prediction of Escherichia coli phenotypes and downstream comparative analyses
https://lfz.corefacility.ca/superphy/grouch/
Apache License 2.0
4 stars 2 forks source link

AssertionError #308

Open kevinkle opened 6 years ago

kevinkle commented 6 years ago

https://sentry.io/superphy/spfy/issues/525780560/

AssertionError: 
(4 additional frame(s) were not displayed)
...
  File "flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "routes/ra_timings.py", line 36, in job_timings
    return jsonify(_time_pipeline(job_id))
  File "routes/ra_timings.py", line 16, in _time_pipeline
    return pipeline.timings()
  File "middleware/models.py", line 344, in timings
    assert self.done

AssertionError
kevinkle commented 6 years ago

Probably related to using the timing script / the bulk uploading feature where self.done checks for all display results which are complete (when there are not display results for bulk uploading)

kevinkle commented 6 years ago

Looks like with the timing script, the Assertion Error happens if theres an error in the pipeline the timings api still try to calc the timing on it (and hence raise an error with assert self.done)