NAME

TheSchwartz::JobScheduler::Job - TheSchwartz Job class

VERSION

version 0.002

SYNOPSIS

use TheSchwartz::JobScheduler::Job;

my $job1 = TheSchwartz::JobScheduler::Job->new;
$job1->funcname("WorkerName");
$job1->arg({ foo => "bar" });
$job1->uniqkey("uniqkey");
$job1->run_after( time + 60 );

my $job2 = TheSchwartz::JobScheduler::Job->new(
    funcname => 'WorkerName',
    arg => { foo => 'baz' },
    );

DESCRIPTION

The Job class makes it easier to create TheSchwartz jobs with different parameters.

METHODS

as_hashref

Get Job as a hashref.

Accessors:

jobid
funcid
arg
uniqkey
insert_time
run_after
grabbed_until
priority
coalesce
funcname

AUTHOR

Mikko Koivunalho <mikkoi@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Mikko Koivunalho.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.