def start_task(task)
      max_processing_time = if task.respond_to?(:max_processing_time)
                              task.max_processing_time
                            end
      @http.post(
        worker_url('tasks'),
        ATTR_PROG => PROG,
        ATTR_NAME => class_name(task),
        ATTR_DATA => @serializer.encode(@properties.from(task)),
        ATTR_MAX_PROCESSING_TIME => max_processing_time
      )
    end
def start_task(task)
      max_processing_time = if task.respond_to?(:max_processing_time)
                              task.max_processing_time
                            end
      @http.post(
        worker_url('tasks'),
        ATTR_PROG => PROG,
        ATTR_NAME => class_name(task),
        ATTR_DATA => @serializer.encode(@properties.from(task)),
        ATTR_MAX_PROCESSING_TIME => max_processing_time
      )
    end
Start a single task
 @param task [Zenaton::Interfaces::Task]