You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix this problem the pkg/snowblock.TaskRunnerMapping type should accept multiple pkg/api.TaskConfiguration objects (TaskRunnerMapping map[api.TaskRunner][]api.TaskConfiguration) instead of only one so the previous object won't be overridden.
The text was updated successfully, but these errors were encountered:
When a task is defined multiple times within the same snowblock configuration file, only the last object is processed while any object before are ignored.
The root cause is the
pkg/snowblock.TaskRunnerMapping
custom type that only accepts onepkg/api.TaskConfiguration
object.Therefore any parsed task object of the same type is overriden by tasks that are parsed after that task resulting in missing tasks.
Running this example configuration will not process the first
clean
task but only the second one:To fix this problem the
pkg/snowblock.TaskRunnerMapping
type should accept multiplepkg/api.TaskConfiguration
objects (TaskRunnerMapping map[api.TaskRunner][]api.TaskConfiguration
) instead of only one so the previous object won't be overridden.The text was updated successfully, but these errors were encountered: