Skip to content

Commit

Permalink
Merge branch 'master' into sendToGitHub/floating-grpcio-dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
masipauskas authored Nov 14, 2024
2 parents 0bd6a7b + c988811 commit 980416d
Show file tree
Hide file tree
Showing 10 changed files with 744 additions and 475 deletions.
2 changes: 1 addition & 1 deletion internal/scheduler/database/db.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/scheduler/database/executor_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (r *PostgresExecutorRepository) GetExecutorSettings(ctx *armadacontext.Cont
executorSettings := make([]*schedulerobjects.ExecutorSettings, len(results))
for i, result := range results {
settings := &schedulerobjects.ExecutorSettings{
ExecutorId: result.ExecutorId,
ExecutorId: result.ExecutorID,
Cordoned: result.Cordoned,
CordonReason: result.CordonReason,
SetByUser: result.SetByUser,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ALTER TABLE executor_settings
ALTER COLUMN cordon_reason TYPE text USING (COALESCE(cordon_reason, ''))
, ALTER COLUMN cordon_reason SET DEFAULT ''
, ALTER COLUMN cordon_reason SET NOT NULL;

ALTER TABLE executor_settings
ALTER COLUMN set_by_user TYPE text USING (COALESCE(set_by_user, ''))
, ALTER COLUMN set_by_user SET DEFAULT ''
, ALTER COLUMN set_by_user SET NOT NULL;

ALTER TABLE executor_settings
ALTER COLUMN set_at_time TYPE timestamptz USING (COALESCE(set_at_time, '2024-11-12 09:00:00 UTC'::timestamptz))
, ALTER COLUMN set_at_time SET DEFAULT NOW()
, ALTER COLUMN set_at_time SET NOT NULL;
18 changes: 9 additions & 9 deletions internal/scheduler/database/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 980416d

Please sign in to comment.