# Cancel Runnable in Execution Engine

**URL:** <https://forum.inductiveautomation.com/t/cancel-runnable-in-execution-engine/15414>\
**Category:** Module Development\
**Tags:** sdk, scripting, ignition79\
**Created:** [September 20, 2017, 5:07pm UTC](https://forum.inductiveautomation.com/t/cancel-runnable-in-execution-engine/15414 "2017-09-20T17:07:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [September 20, 2017, 5:07pm UTC](https://forum.inductiveautomation.com/t/cancel-runnable-in-execution-engine/15414/1 "2017-09-20T17:07:24Z")

</div>

Using com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine is it possible to cancel a runnable that was submitted with executeOnce?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 20, 2017, 6:06pm UTC](https://forum.inductiveautomation.com/t/cancel-runnable-in-execution-engine/15414/2 "2017-09-20T18:06:41Z")

</div>

Only if you keep a reference to the ScheduledFuture\<\> returned when you submit the runnable, and you must use the 3-arg overload version of the method to get the Future.  
If you use the register\*() methods, you can use the owner and taskid strings to cancel it.
