Skip to content

Commit

Permalink
Merge branch 'master' of github.com:armadaproject/armada into f/chris…
Browse files Browse the repository at this point in the history
…ma/better-validation
  • Loading branch information
d80tb7 committed Feb 25, 2024
2 parents 7947892 + 921c19f commit 88c0844
Show file tree
Hide file tree
Showing 23 changed files with 4,350 additions and 1,198 deletions.
12 changes: 12 additions & 0 deletions client/DotNet/Armada.Client/ClientGenerated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,18 @@ public enum ApiJobState
[System.Runtime.Serialization.EnumMember(Value = @"UNKNOWN")]
UNKNOWN = 5,

[System.Runtime.Serialization.EnumMember(Value = @"SUBMITTED")]
SUBMITTED = 6,

[System.Runtime.Serialization.EnumMember(Value = @"LEASED")]
LEASED = 7,

[System.Runtime.Serialization.EnumMember(Value = @"PREEMPTED")]
PREEMPTED = 8,

[System.Runtime.Serialization.EnumMember(Value = @"CANCELLED")]
CANCELLED = 9,

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.27.0 (Newtonsoft.Json v12.0.0.0)")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
/>
<Protobuf
Include="../../../pkg/api/*.proto"
Exclude="../../../pkg/api/job.proto"
AdditionalProtocArguments="--proto_path=../../../proto"
ProtoRoot="../../../"
GrpcServices="Client"
Expand Down
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.2.8"
version = "0.2.9"
description = "Armada gRPC API python client"
readme = "README.md"
requires-python = ">=3.7"
Expand Down
185 changes: 0 additions & 185 deletions client/python/tests/unit/test_gen.py

This file was deleted.

1 change: 1 addition & 0 deletions config/armada/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ postgres:
sslmode: disable
queryapi:
enabled: false
maxQueryItems: 500
postgres:
connection:
host: postgres
Expand Down
5 changes: 3 additions & 2 deletions internal/armada/configuration/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ type PostgresConfig struct {
}

type QueryApiConfig struct {
Enabled bool
Postgres PostgresConfig
Enabled bool
Postgres PostgresConfig
MaxQueryItems int
}
1 change: 1 addition & 0 deletions internal/armada/queryapi/database/models.go

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

14 changes: 12 additions & 2 deletions internal/armada/queryapi/database/query.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
-- name: GetJobState :many
SELECT state FROM job WHERE job_id = $1;
-- name: GetJobStates :many
SELECT job_id, state FROM job WHERE job_id = ANY(sqlc.arg(job_ids)::text[]);

-- name: GetJobDetails :many
SELECT job_id, queue, jobset, namespace, state, submitted, cancelled, cancel_reason, last_transition_time, latest_run_id, job_spec FROM job WHERE job_id = ANY(sqlc.arg(job_ids)::text[]);

-- name: GetJobRunsByRunIds :many
SELECT * FROM job_run WHERE run_id = ANY(sqlc.arg(run_ids)::text[]);

-- name: GetJobRunsByJobIds :many
SELECT * FROM job_run WHERE job_id = ANY(sqlc.arg(job_ids)::text[]) order by leased desc;

Loading

0 comments on commit 88c0844

Please sign in to comment.