/status/<job_id> which simple returns pending, failed, or complete
/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.
something like:
/status/<job_id>
which simple returnspending
,failed
, orcomplete
/results/<job_id>
which returns eitherjob.exc_info
(failed) orjob.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 returnfailed
+job.exc_info
since it won't be that large.