Class OpenWFE::AtJob
In: lib/openwfe/util/scheduler.rb
Parent: Job

An ‘at’ job.

Methods

new   schedule_info   trigger  

Attributes

at  [RW]  The float representation (Time.to_f) of the time at which the job should be triggered.

Public Class methods

The constructor.

[Source]

      # File lib/openwfe/util/scheduler.rb, line 1047
1047:             def initialize (scheduler, at, at_id, params, &block)
1048: 
1049:                 super(scheduler, at_id, params, &block)
1050:                 @at = at
1051:             end

Public Instance methods

Returns the Time instance at which this job is scheduled.

[Source]

      # File lib/openwfe/util/scheduler.rb, line 1064
1064:             def schedule_info
1065: 
1066:                 Time.at(@at)
1067:             end

Triggers the job (calls the block)

[Source]

      # File lib/openwfe/util/scheduler.rb, line 1056
1056:             def trigger
1057: 
1058:                 @block.call @job_id, @at
1059:             end

[Validate]