only set end_time when deprecating a run and end_time is still null