Skip to content
Snippets Groups Projects
Commit 87b40eb6 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Fix excel file download

The /status/<job_id> view was only looking in the "default" queue to
retrieve the job.
"default" is not used anymore and was replaced by "high", "normal",
"low".
The method Job.fetch doesn't look in a specific queue.

JIRA INFRA-890 #action In Progress
parent 8d737f58
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,11 @@ This module implements the main blueprint.
"""
import os
import redis
import rq
import rq_dashboard
from flask import Blueprint, render_template, jsonify, g, current_app, abort, request
from flask_login import login_required, current_user
from rq import push_connection, pop_connection, Queue
from rq import push_connection, pop_connection
from ..extensions import sentry
from .. import utils
......@@ -115,8 +116,7 @@ def job_status(job_id):
:param int job_id: The id of the job to pull
:return: json with the status of the job
"""
q = Queue()
job = q.fetch_job(job_id)
job = rq.job.Job.fetch(job_id)
if job is None:
response = {"status": "unknown"}
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment