Right now, functionality added to TPI resource_runner (to support CML) needs to be duplicated/separately added to TPI resource_task (for TPI task) and TPI resource_machine (for who-knows-what).
It's better to use the same code for all 3 resources:
resource_task (used by public CLI)
resource_runner (used by internal CLI for CML)
resource_machine (used by ??)
Either:
make the above resources share more golang code (abstract common functionality into one place common.go & make them all use said common functionality),
Right now, functionality added to TPI
resource_runner
(to support CML) needs to be duplicated/separately added to TPIresource_task
(for TPItask
) and TPIresource_machine
(for who-knows-what).It's better to use the same code for all 3
resource
s:resource_task
(used by public CLI)resource_runner
(used by internal CLI for CML)resource_machine
(used by ??)Either:
resource
s share more golang code (abstract common functionality into one placecommon.go
& make them all use said common functionality),resource
s