Class: Headsail::Task
- Inherits:
-
Object
- Object
- Headsail::Task
- Defined in:
- lib/headsail/task.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Task
constructor
A new instance of Task.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 |
# File 'lib/headsail/task.rb', line 15 def run Concurrent::TimerTask.new(execution_interval: @api.timer) do @redis.add(@http.body) if @http.run end end |