Update task status

Updates the status and result of a task. Used by workers to report task completion, failure, or progress.