Skip to content

Commit f175247

Browse files
authored
feat: timeout, profile and limits (#358)
1 parent 1f1d791 commit f175247

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

openhexa/graphql/graphql_client/input_types.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,14 @@ class ResetPasswordInput(BaseModel):
509509

510510

511511
class ResourceCountsInput(BaseModel):
512+
max_pipeline_timeout: Optional[int] = Field(
513+
alias="maxPipelineTimeout", default=None
514+
)
515+
notebook_profile: Optional[str] = Field(alias="notebookProfile", default=None)
516+
pipeline_cpu_limit: Optional[str] = Field(alias="pipelineCpuLimit", default=None)
517+
pipeline_memory_limit: Optional[str] = Field(
518+
alias="pipelineMemoryLimit", default=None
519+
)
512520
pipeline_runs: int = Field(alias="pipelineRuns")
513521
users: int
514522
workspaces: int

openhexa/graphql/schema.generated.graphql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,6 +3898,18 @@ type ResourceCounts {
38983898

38993899
"""Input type for resource counts (used for subscription limits)."""
39003900
input ResourceCountsInput {
3901+
"""Maximum pipeline timeout in seconds."""
3902+
maxPipelineTimeout: Int
3903+
3904+
"""JupyterHub profile to use (e.g., "trial")."""
3905+
notebookProfile: String
3906+
3907+
"""CPU limit for pipeline pods (e.g., "1")."""
3908+
pipelineCpuLimit: String
3909+
3910+
"""Memory limit for pipeline pods (e.g., "1G")."""
3911+
pipelineMemoryLimit: String
3912+
39013913
"""Number of pipeline runs."""
39023914
pipelineRuns: Int!
39033915

@@ -4120,6 +4132,15 @@ type Subscription {
41204132
"""The date when the subscription ends."""
41214133
endDate: Date!
41224134

4135+
"""Whether the subscription has expired."""
4136+
isExpired: Boolean!
4137+
4138+
"""
4139+
Whether the subscription is in the grace period after expiration.
4140+
During the grace period, limits are not enforced but a warning is shown.
4141+
"""
4142+
isInGracePeriod: Boolean!
4143+
41234144
"""Resource limits for this subscription."""
41244145
limits: ResourceCounts!
41254146

0 commit comments

Comments
 (0)