mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-26 17:51:13 +08:00
use correct template name vars
This commit is contained in:
@@ -86,7 +86,7 @@ templates:
|
||||
optional: true
|
||||
`
|
||||
|
||||
const pytorchMnistWorkflowTemplateName = "PyTorch Training"
|
||||
const pytorchWorkflowTemplateName = "PyTorch Training"
|
||||
|
||||
func initialize20200605090509() {
|
||||
if _, ok := initializedMigrations[20200605090509]; !ok {
|
||||
@@ -120,7 +120,7 @@ func Up20200605090509(tx *sql.Tx) error {
|
||||
}
|
||||
|
||||
workflowTemplate := &v1.WorkflowTemplate{
|
||||
Name: pytorchMnistWorkflowTemplateName,
|
||||
Name: pytorchWorkflowTemplateName,
|
||||
Manifest: pytorchMnistWorkflowTemplate,
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ func Down20200605090509(tx *sql.Tx) error {
|
||||
return err
|
||||
}
|
||||
|
||||
uid, err := uid2.GenerateUID(pytorchMnistWorkflowTemplateName, 30)
|
||||
uid, err := uid2.GenerateUID(pytorchWorkflowTemplateName, 30)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ func initialize20201221194344() {
|
||||
func Up20201221194344(tx *sql.Tx) error {
|
||||
return updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "pytorch-mnist-training", "20201221194344.yaml"),
|
||||
pytorchMnistWorkflowTemplateName,
|
||||
pytorchWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
},
|
||||
@@ -29,7 +29,7 @@ func Down20201221194344(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "pytorch-mnist-training", "20200605090509.yaml"),
|
||||
pytorchMnistWorkflowTemplateName,
|
||||
pytorchWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
},
|
||||
|
@@ -18,7 +18,7 @@ func Up20210118175809(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is applied.
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "hyperparameter-tuning", "20210118175809.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
hyperparameterTuningTemplateName,
|
||||
map[string]string{
|
||||
"framework": "tensorflow",
|
||||
"tuner": "TPE",
|
||||
@@ -30,7 +30,7 @@ func Up20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "maskrcnn-training", "20210118175809.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
maskRCNNWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
"used-by": "cvat",
|
||||
@@ -41,7 +41,7 @@ func Up20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "pytorch-mnist-training", "20210118175809.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
pytorchWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
},
|
||||
@@ -51,7 +51,7 @@ func Up20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "tensorflow-mnist-training", "20210118175809.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
tensorflowWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
"framework": "tensorflow",
|
||||
@@ -87,7 +87,7 @@ func Down20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "tensorflow-mnist-training", "20201223062947.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
tensorflowWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
"framework": "tensorflow",
|
||||
@@ -99,7 +99,7 @@ func Down20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "pytorch-mnist-training", "20201221194344.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
pytorchWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
},
|
||||
@@ -109,7 +109,7 @@ func Down20210118175809(tx *sql.Tx) error {
|
||||
|
||||
if err := updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "maskrcnn-training", "20201221195937.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
maskRCNNWorkflowTemplateName,
|
||||
map[string]string{
|
||||
"created-by": "system",
|
||||
"used-by": "cvat",
|
||||
@@ -120,7 +120,7 @@ func Down20210118175809(tx *sql.Tx) error {
|
||||
|
||||
return updateWorkflowTemplateManifest(
|
||||
filepath.Join("workflows", "hyperparameter-tuning", "20201225172926.yaml"),
|
||||
tensorflowObjectDetectionWorkflowTemplateName,
|
||||
hyperparameterTuningTemplateName,
|
||||
map[string]string{
|
||||
"framework": "tensorflow",
|
||||
"tuner": "TPE",
|
||||
|
Reference in New Issue
Block a user