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

This commit is contained in:
Aleksandr Meshchryakov
2026-09-13 23:13:47 +02:00
parent c863563851
commit 49cbfd265c
50 changed files with 5021 additions and 452 deletions

View File

@@ -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)