class LuaScripts

Methods

static string
updateMetrics()

Update the metrics for a job.

static string
purge()

Get the Lua script for purging recent and pending jobs off of the queue.

Details

at line 16
static string updateMetrics()

Update the metrics for a job.

KEYS[1] - The name of the key being updated KEYS[2] - The name of the key of the metrics group ARGV[1] - The runtime in milliseconds of the current job

Return Value

string

at line 47
static string purge()

Get the Lua script for purging recent and pending jobs off of the queue.

KEYS[1] - The name of the recent jobs sorted set KEYS[2] - The name of the pending jobs sorted set ARGV[1] - The prefix of the Horizon keys ARGV[2] - The name of the queue to purge ARGV[3] - The cursor position

Return Value

string