Skip to content

Commit

Permalink
Show currently running job in qless worker procline
Browse files Browse the repository at this point in the history
It looks like this may have been inadvertently removed in dc0684d. This
PR restores that behavior, albeit in a slightly different format.
Notably we omit the job state (since it must be running), and the job
data, which could be reasonably large.
  • Loading branch information
oggy committed Jul 6, 2018
1 parent 0616a5d commit b6923a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/qless/worker/serial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def run
jobs.each do |job|
# Run the job we're working on
log(:debug, "Starting job #{job.klass_name} (#{job.jid} from #{job.queue_name})")
procline "Processing: #{job.jid} (#{job.klass_name}) from #{job.queue_name}"
perform(job)
log(:debug, "Finished job #{job.klass_name} (#{job.jid} from #{job.queue_name})")

Expand Down

0 comments on commit b6923a3

Please sign in to comment.