def cancelTask(deferredResult):
    if not deferredResult.called:
        defer.timeout(deferredResult)

#exported interfaces
As suggested this cancels our task
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/clients/__init__.py/cancelTask