Initial deploy setup
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-21 14:00:00 +02:00
commit b8091e59bd
285 changed files with 27854 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from __future__ import annotations
from celery import shared_task
from apps.jobs.models import JobPosting
from .services.lifecycle import update_lifecycle
from .services.scoring import rescore_jobs_with_profiles
@shared_task(name="apps.jobs.tasks.update_job_lifecycle")
def update_job_lifecycle() -> dict[str, int]:
return update_lifecycle()
@shared_task(name="apps.jobs.tasks.rescore_active_jobs")
def rescore_active_jobs(profile_id: int | None = None) -> dict[str, int]:
count = rescore_jobs_with_profiles(
JobPosting.objects.filter(status=JobPosting.Status.ACTIVE), profile_id=profile_id
)
return {"scores_created": count}