Skip to content

Commit

Permalink
Merge pull request #47 from D10S0VSkY-OSS/dependabot/pip/sld-api-back…
Browse files Browse the repository at this point in the history
…end/celery-5.2.2

Build(deps): Bump celery from 4.4.7 to 5.2.2 in /sld-api-backend
  • Loading branch information
D10S0VSkY-OSS authored Jan 10, 2022
2 parents 31d946b + c06dae7 commit 4c0d007
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sld-api-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Build the Docker image with tag
working-directory: ./sld-api-backend
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-api:2.1.1
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-api:2.1.2

- name: Docker Push with tag
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-api:2.1.1
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-api:2.1.2

- name: Build the Docker image
working-directory: ./sld-api-backend
Expand Down
4 changes: 2 additions & 2 deletions sld-api-backend/api_v1/endpoints/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from sqlalchemy.orm import Session
from fastapi import APIRouter, Depends, HTTPException
from celery.result import AsyncResult
from celery.task.control import revoke
from config.celery_config import celery_app

from schemas import schemas
from security import deps
Expand All @@ -25,7 +25,7 @@
async def get_task_by_id(
task_id: str,
current_user: schemas.User = Depends(deps.get_current_active_user)):
result = revoke(task_id, terminate=True)
result = celery_app.control.revoke(task_id, terminate=True)
return {"result": f'REVOKE {task_id}'}


Expand Down
2 changes: 1 addition & 1 deletion sld-api-backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ attrs==20.3.0
bcrypt==3.2.0
billiard==3.6.3.0
cached-property==1.5.2
celery==4.4.7
celery==5.2.2
certifi==2020.12.5
cffi==1.14.3
chardet==4.0.0
Expand Down

0 comments on commit 4c0d007

Please sign in to comment.