Package presentation implements common method to API and UI serving.
GetJobTraits asks the corresponding task manager for a traits struct.
PublicStateKind defines state of the job which is exposed in UI and API instead of internal states which are kept as an implementation detail.
const ( PublicStateDisabled PublicStateKind = "DISABLED" PublicStatePaused PublicStateKind = "PAUSED" PublicStateRunning PublicStateKind = "RUNNING" PublicStateScheduled PublicStateKind = "SCHEDULED" PublicStateWaiting PublicStateKind = "WAITING" )
When a PublicStateKind is added/removed/updated, update scheduler api proto doc for `JobState`.
GetPublicStateKind returns user-friendly state for a job.