fb149899e2
Remove the SuccessExitCodes field from domain.Job and every layer that read or wrote it: runner/exitcodes.go (deleted), runner.go runStateDetail simplified to 0=OK / non-zero=Failed, logfile.go, format.go, operations.go, store.go, job_dialog.go, and jobs_view.go. Tests updated accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
769 B
Go
18 lines
769 B
Go
package domain
|
|
|
|
// Job is the user-visible scheduled command. It contains only durable
|
|
// configuration: every field is persisted to jobs.json. Transient execution
|
|
// state (last run, next run, command output, in-memory activity) lives in a
|
|
// separate JobRuntime so the jobs file stays a clean, hand-editable record of
|
|
// configuration and never mixes in process-lifetime bookkeeping.
|
|
type Job struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Folder string `json:"folder,omitempty"`
|
|
Schedule string `json:"schedule"`
|
|
Command string `json:"command"`
|
|
Arguments string `json:"arguments,omitempty"`
|
|
StartOnly bool `json:"start_only,omitempty"`
|
|
Enabled bool `json:"enabled"`
|
|
}
|