Add notes for future
This commit is contained in:
parent
0074cced26
commit
3e550d29ca
2
job.go
2
job.go
@ -58,6 +58,8 @@ type Job struct {
|
|||||||
Forget *ForgetOpts `hcl:"forget,block"`
|
Forget *ForgetOpts `hcl:"forget,block"`
|
||||||
|
|
||||||
// Meta Tasks
|
// 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"`
|
MySQL []JobTaskMySQL `hcl:"mysql,block"`
|
||||||
Sqlite []JobTaskSqlite `hcl:"sqlite,block"`
|
Sqlite []JobTaskSqlite `hcl:"sqlite,block"`
|
||||||
|
|
||||||
|
1
tasks.go
1
tasks.go
@ -285,6 +285,7 @@ type JobTask struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t JobTask) Validate() error {
|
func (t JobTask) Validate() error {
|
||||||
|
// NOTE: Might make task types mutually exclusive because order is confusing even if deterministic
|
||||||
if t.Name == "" {
|
if t.Name == "" {
|
||||||
return fmt.Errorf("task is missing a name: %w", ErrMissingField)
|
return fmt.Errorf("task is missing a name: %w", ErrMissingField)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user