Add notes for future

This commit is contained in:
IamTheFij 2022-11-27 21:20:13 -08:00
parent 0074cced26
commit 3e550d29ca
2 changed files with 3 additions and 0 deletions

2
job.go
View File

@ -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"`

View File

@ -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)
}