diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index f255eb67f..d7f130eaf 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -108,6 +108,8 @@ def cancel_job(service_id, job_id): # //this is the resource that gets updated by being passed to ajax via updates_url to data-resource # and everything that is within get_job_partials is the html that gets updated + + @main.route("/services//jobs/.json") @user_has_permissions() def view_job_updates(service_id, job_id): diff --git a/app/notify_client/job_api_client.py b/app/notify_client/job_api_client.py index 130bf886a..640c5ec26 100644 --- a/app/notify_client/job_api_client.py +++ b/app/notify_client/job_api_client.py @@ -4,8 +4,10 @@ from zoneinfo import ZoneInfo from app.extensions import redis_client from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache from app.utils.csv import get_user_preferred_timezone + # from app.main.views.jobs import emit_job_update + class JobApiClient(NotifyAdminAPIClient): JOB_STATUSES = { "scheduled",