Changeset 18353
- Timestamp:
- 08/28/08 06:20:29 (4 months ago)
- Location:
- lang/perl/TheSchwartz-Simple/trunk/lib/TheSchwartz
- Files:
-
- 2 modified
-
Simple.pm (modified) (1 diff)
-
Simple/Job.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/TheSchwartz-Simple/trunk/lib/TheSchwartz/Simple.pm
r18351 r18353 30 30 } 31 31 $job->arg( Storable::nfreeze($job->arg) ) if ref $job->arg; 32 33 # Use default value if 'run_after' or 'grabbed_until' is not specified34 $job->run_after( 0 ) unless $job->run_after;35 $job->grabbed_until( 0 ) unless $job->grabbed_until;36 32 37 33 for my $dbh (@{$self->{databases}}) { -
lang/perl/TheSchwartz-Simple/trunk/lib/TheSchwartz/Simple/Job.pm
r18314 r18353 4 4 sub new_from_array { 5 5 my($class, $funcname, $arg) = @_; 6 bless {6 $class->new( 7 7 funcname => $funcname, 8 8 arg => $arg, 9 }, $class;9 ); 10 10 } 11 11 … … 13 13 my $class = shift; 14 14 my %param = ref $_[0] ? %{$_[0]} : @_; 15 bless \%param, $class; 15 my $self = bless \%param, $class; 16 17 $self->run_after( time ) unless defined $self->run_after; 18 $self->grabbed_until( 0) unless defined $self->grabbed_until; 19 20 $self; 16 21 } 17 22
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)