iron-io/iron_worker_ruby — Issue #10: Create cancel_task call in service.rb and cancel in base.rb
Author: frommww
Created: 2011-12-29 01:54:25+00:00
State: open

Create a cancel_task capability for service.rb and a cancel for base.rb

service.rb
--------------
IronWorker.service.cancel_task(task_id)

base.rb
-----------
worker.cancel{ }
if task_id
worker.cancel_task
elsif schedule_id
worker.cancel_schedule

worker.cancel_task{ }

worker.cancel_schedule{ }