Update a task's status, result, error, or dependencies.