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