diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index 3410c49de..86ce0bce6 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -103,12 +103,8 @@ def view_job_csv(service_id, job_id): @user_has_permissions("send_messages") def cancel_job(service_id, job_id): Job.from_id(job_id, service_id=service_id).cancel() - return redirect(url_for("main.service_dashboard", service_id=service_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() diff --git a/app/notify_client/job_api_client.py b/app/notify_client/job_api_client.py index 640c5ec26..9a06e16bf 100644 --- a/app/notify_client/job_api_client.py +++ b/app/notify_client/job_api_client.py @@ -5,8 +5,6 @@ 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 = { diff --git a/app/templates/components/ajax-block.html b/app/templates/components/ajax-block.html index d73694fbd..c73978725 100644 --- a/app/templates/components/ajax-block.html +++ b/app/templates/components/ajax-block.html @@ -12,17 +12,3 @@ {% endif %} {% endmacro %} - -{% macro socket_block(partials, job_id, key, finished=False, form='') %} - {% if not finished %} -
- {% endif %} - {{ partials[key]|safe }} - {% if not finished %} -
- {% endif %} -{% endmacro %}