Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate ambiguous SchedulingMetadata.task_size field (#7901)
The `SchedulingMetadata.task_size` field is both lossy (since it is supposed to contain the "default" task size, but gets overwritten) and redundant (the executor allegedly uses this for scheduling but in practice it actually uses EnqueueTaskReservationRequest.task_size). Deprecate this field and add clearer, not-lossy alternatives. (We'll keep setting it for some time, probably, because we do have some places in the code where it's unfortunately used - e.g. ExecutedActionMetadata.task_size gets set to this value, but probably should be getting set to the task_size from EnqueueTaskReservationRequest, which represents its "final" size for local scheduling
- Loading branch information