Skip to content

Commit

Permalink
change order of initializer and migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
saffronjam committed Dec 30, 2023
1 parent d58d865 commit 898cdf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ func Create(opts *Options) *App {
}

db.Setup()

intializer.CleanUpOldTests()
intializer.SynchronizeGPUs()
intializer.SynchronizeVmPorts()

migrator.Migrate()

err := job.New().ResetRunning()
if err != nil {
log.Fatalln(fmt.Errorf("failed to reset running job. details: %w", err))
}

intializer.SynchronizeGPUs()
intializer.SynchronizeVmPorts()

ctx, cancel := context.WithCancel(context.Background())

for _, flag := range opts.Flags {
Expand Down

0 comments on commit 898cdf3

Please sign in to comment.