Skip to content

Commit

Permalink
Setting limit for all task states
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpekurovsky authored Jul 23, 2017
1 parent 9b3f910 commit 1fc990f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash/handlers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def outdated_queries():
@login_required
def queries_tasks():
limit = request.args.get('limit') or 50
waiting = QueryTaskTracker.all(QueryTaskTracker.WAITING_LIST)
in_progress = QueryTaskTracker.all(QueryTaskTracker.IN_PROGRESS_LIST)
waiting = QueryTaskTracker.all(QueryTaskTracker.WAITING_LIST, limit=limit)
in_progress = QueryTaskTracker.all(QueryTaskTracker.IN_PROGRESS_LIST, limit=limit)
done = QueryTaskTracker.all(QueryTaskTracker.DONE_LIST, limit=limit)

response = {
Expand Down

0 comments on commit 1fc990f

Please sign in to comment.