maybe call cancel_pending_task instead