Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ecr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
push:
branches:
- dev
workflow_dispatch:

name: DEV ECS build & deployment

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ on:
branches:
- main
workflow_dispatch:
branches:
- main

name: PRODUCTION ECS build & deployment

Expand Down
7 changes: 5 additions & 2 deletions mcserver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,11 @@ def dequeue(self, request):
if trials.count() == 0 and trialsReprocess.count() == 0:
raise Http404

# prioritize admin and priority group trials (priority group doesn't exist yet, but should have same priv. as user)
trialsPrioritized = trials.filter(session__user__groups__name__in=["admin","priority"])
# prioritize admin group trials first
trialsPrioritized = trials.filter(session__user__groups__name__in=["admin"])
# if no admin trials, go to priority group trials
if trialsPrioritized.count() == 0:
trialsPrioritized = trials.filter(session__user__groups__name__in=["priority"])
# if not priority trials, go to normal trials
if trialsPrioritized.count() == 0:
trialsPrioritized = trials
Expand Down