infra
This commit is contained in:
parent
0f7ed1a5cd
commit
c6ac33ed2f
@ -37,7 +37,8 @@ class TaskView(BaseView):
|
|||||||
task=self.entities.task,
|
task=self.entities.task,
|
||||||
user=self.request.user,
|
user=self.request.user,
|
||||||
language_id=int(self.request.POST["language"]),
|
language_id=int(self.request.POST["language"]),
|
||||||
set=self.entities.set if hasattr(self.entities, 'setTask') else None
|
set=self.entities.set if hasattr(self.entities, 'setTask') else None,
|
||||||
|
extras=dict(),
|
||||||
)
|
)
|
||||||
|
|
||||||
def post_0(self):
|
def post_0(self):
|
||||||
|
@ -8,6 +8,8 @@ services:
|
|||||||
command: ./manage.py migrate
|
command: ./manage.py migrate
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart_policy:
|
||||||
|
condition: never
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
@ -21,6 +23,7 @@ services:
|
|||||||
- "80:80"
|
- "80:80"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart-policy: on-failure
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
@ -32,6 +35,7 @@ services:
|
|||||||
- web
|
- web
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart-policy: on-failure
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
@ -43,6 +47,7 @@ services:
|
|||||||
- web
|
- web
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart-policy: on-failure
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
restart: always
|
restart: always
|
||||||
@ -61,6 +66,7 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 4
|
replicas: 4
|
||||||
|
restart-policy: on-failure
|
||||||
|
|
||||||
apply-languages:
|
apply-languages:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
@ -69,6 +75,7 @@ services:
|
|||||||
- migrations
|
- migrations
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart-policy: never
|
||||||
|
|
||||||
notify-admin:
|
notify-admin:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
@ -82,3 +89,4 @@ services:
|
|||||||
- loop
|
- loop
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
restart-policy: never
|
||||||
|
Loading…
Reference in New Issue
Block a user