Save a task identifier.