update task context