lib/rest-ftp-daemon/workers/transfer.rb in rest-ftp-daemon-0.435.2 vs lib/rest-ftp-daemon/workers/transfer.rb in rest-ftp-daemon-0.501.0
- old
+ new
@@ -13,11 +13,11 @@
# Timeout and retry config
return "timeout disabled" if disabled?(@config[:timeout])
return "invalid timeout" unless @config[:timeout].to_i > 0
# Log that
- log_info "JobWorker worker_init", {
+ log_info "worker_init", {
pool: @pool,
timeout: @config[:timeout]
}
return false
@@ -78,11 +78,11 @@
def job_result job
# If job status requires a retry, just restack it
if !job.error
# Processing successful
- log_info "job_result: finished with success"
+ log_info "job_result: finished successfully"
worker_status WORKER_STATUS_FINISHED, job
elsif error_not_eligible(job)
log_error "job_result: not retrying [#{job.error}] retry_on not eligible"
@@ -139,6 +139,6 @@
def tentatives job
"[#{job.tentatives}/#{@config[:retry_max]}]"
end
end
-end
+end
\ No newline at end of file