Fix code example

Not quite sure if this fix is correct; nonetheless it seems to me it should be result.task_id instead of request.task_id.