class SidekiqUniqueJobs::Lock

def changelog_json(job_id, script, message)

Returns:
  • (String) - a JSON string matching the Lua script structure

Parameters:
  • message (String) -- a descriptive message for later review
  • script (String) -- the name of the script generating this entry
  • job_id (String) -- a sidekiq JID
def changelog_json(job_id, script, message)
  dump_json(
    digest: key.digest,
    job_id: job_id,
    script: script,
    message: message,
    time: now_f,
  )
end