lib/tap/app.rb in bahuvrihi-tap-0.10.2 vs lib/tap/app.rb in bahuvrihi-tap-0.10.3

- old
+ new

@@ -490,10 +490,10 @@ # task in task.batch will be enqued with the inputs. Returns task. # # An Executable may provided instead of a task. def enq(task, *inputs) case task - when Tap::Task, Tap::Workflow + when Tap::Task raise "not assigned to enqueing app: #{task}" unless task.app == self task.enq(*inputs) when Support::Executable queue.enq(task, inputs) else \ No newline at end of file