see comment for <code>#complete_task</code>