diff --git a/job.go b/job.go index d9b0005..b0b6fe0 100644 --- a/job.go +++ b/job.go @@ -58,6 +58,8 @@ type Job struct { Forget *ForgetOpts `hcl:"forget,block"` // Meta Tasks + // NOTE: Now that these are also available within a task + // these could be removed to make task order more obvious MySQL []JobTaskMySQL `hcl:"mysql,block"` Sqlite []JobTaskSqlite `hcl:"sqlite,block"` diff --git a/tasks.go b/tasks.go index 1ff550e..fcb2be3 100644 --- a/tasks.go +++ b/tasks.go @@ -285,6 +285,7 @@ type JobTask struct { } func (t JobTask) Validate() error { + // NOTE: Might make task types mutually exclusive because order is confusing even if deterministic if t.Name == "" { return fmt.Errorf("task is missing a name: %w", ErrMissingField) }