Skip to content

Commit

Permalink
Merge branch 'master' into sendToGitHub/simulator_misc_tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMurkin authored Nov 14, 2024
2 parents 7fdc2cd + 00c123a commit 4d02b50
Show file tree
Hide file tree
Showing 26 changed files with 976 additions and 635 deletions.
2 changes: 1 addition & 1 deletion client/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "armada_client"
version = "0.3.5"
version = "0.4.6"
description = "Armada gRPC API python client"
readme = "README.md"
requires-python = ">=3.7"
Expand Down
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 4d02b50

Please sign in to comment.