adjust upload_metrics and close_trial for new semantics of IntervalConfig