feat(registries): add SME and budget imports and fix source API workflows
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 9m37s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 4m18s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 1m48s
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 9m37s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 4m18s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 1m48s
This commit is contained in:
@@ -395,7 +395,6 @@ class BackgroundJobControlView(BackgroundJobStatusView):
|
||||
},
|
||||
)
|
||||
def post(self, request: Request, task_id: str) -> Response:
|
||||
from apps.core.models import JobStatus
|
||||
from apps.core.services import BackgroundJobService
|
||||
from celery import current_app
|
||||
|
||||
@@ -415,10 +414,7 @@ class BackgroundJobControlView(BackgroundJobStatusView):
|
||||
task_id,
|
||||
terminate=bool(request.data.get("terminate", False)),
|
||||
)
|
||||
if not job.is_finished:
|
||||
job.status = JobStatus.REVOKED
|
||||
job.progress_message = "Задача отозвана пользователем"
|
||||
job.save(update_fields=["status", "progress_message", "updated_at"])
|
||||
job.revoke(message="Задача отозвана пользователем")
|
||||
return Response(BackgroundJobSerializer(job).data)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user