fix eventlet sleep

This commit is contained in:
Kenneth Kehl
2025-07-10 10:41:21 -07:00
parent c0a97985d7
commit 42ce627800
3 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import json
import time
import eventlet
from celery.signals import task_postrun
from flask import current_app
from requests import HTTPError, RequestException, request
@@ -84,7 +84,7 @@ def process_job(job_id, sender_id=None):
process_row(row, template, job, service, sender_id=sender_id)
count = count + 1
if count % 3 == 0:
eventlet.sleep(1)
time.sleep(1)
# End point/Exit point for message send flow.
job_complete(job, start=start)