Create New Job Entry Object

jobe = job.new() - random job ID string
jobe = job.new(id) - with ID string
jobe = job.new(id, ...) - with ID string and parameters

Parameter Type Description
id string Job Entry ID string
Returns Type Description
jobe object Job Entry Object

Examples

mj = job.new()
mj_id = mj:id() -- random one

mj:set('01:00', mq, MyFunction)
job.add(mj)
mj = job.new('TEST', '01:00', mq, MyFunction)
job.add(mj)
job.add(job.new('TEST', '01:00', mq, MyFunction))