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

create two endpoints, one just for status checking and the other for getting results #94

Open kevinkle opened 7 years ago

kevinkle commented 7 years ago

something like:

  1. /status/<job_id> which simple returns pending, failed, or complete
  2. /results/<job_id> which returns either job.exc_info (failed) or job.results (complete) The job id will be the same, and just dep. on which endpoint is hit, flask will return 1 or 2. Would eliminate a lot of data transfer that is currently going on unnecessarily. Alt. option for 1: could return failed + job.exc_info since it won't be that large.