Displaying 2 results from an estimated 2 matches for "schedule_test".
2006 Oct 30
11
BackgrounDRb 0.2.0 Release! Complete rewrite.
...syntax.
Workers can be scheduled by two built in ''trigger'' types. A simple
''trigger'' is specified with start, stop and interval:
require ''active_support''
MiddleMan.schedule_worker(
:class => :example_worker,
:job_key => :schedule_test,
:worker_method => :other_method,
:trigger_args => {
:start => Time.now + 5.seconds,
:end => Time.now + 10.minutes,
:repeat_interval => 30.seconds
}
The cron trigger uses a similar syntax to cron found on UNIX systems:
MiddleMan.schedule_worke...
2006 Oct 30
1
new BackgroundRB
...9;trigger'' types. A simple
>
> ''trigger'' is specified with start, stop and interval:
>
>
>
> require ''active_support''
>
> MiddleMan.schedule_worker(
>
> :class => :example_worker,
>
> :job_key => :schedule_test,
>
> :worker_method => :other_method,
>
> :trigger_args => {
>
> :start => Time.now + 5.seconds,
>
> :end => Time.now + 10.minutes,
>
> :repeat_interval => 30.seconds
>
> }
>
>
>
> The cron trigger us...