Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannis Spiliopoulos committed Jul 24, 2016
1 parent 94d5cae commit 14d8783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def monitor_work_horse(self, job):
break
if job_status not in [JobStatus.FINISHED, JobStatus.FAILED]:
with self.connection._pipeline() as pipeline:
self.handle_current_job_failure(
self.handle_job_failure(
job=job,
pipeline=pipeline
)
Expand Down Expand Up @@ -611,7 +611,7 @@ def prepare_job_execution(self, job):
msg = 'Processing {0} from {1} since {2}'
self.procline(msg.format(job.func_name, job.origin, time.time()))

def handle_current_job_failure(
def handle_job_failure(
self,
job,
started_job_registry=None,
Expand Down Expand Up @@ -672,7 +672,7 @@ def perform_job(self, job, queue):
pipeline.execute()

except Exception:
self.handle_current_job_failure(
self.handle_job_failure(
job=job,
started_job_registry=started_job_registry,
pipeline=pipeline
Expand Down

0 comments on commit 14d8783

Please sign in to comment.