@@ -44,6 +44,8 @@ class BaseRunnerGroup(PydanticBaseModel):
44
44
max : Optional [int ] = Field (ge = 1 , default = 20 )
45
45
min : Optional [int ] = Field (ge = 0 , default = 0 )
46
46
labels : List [str ]
47
+ job_started_script : Optional [str ] = ""
48
+ job_completed_script : Optional [str ] = ""
47
49
48
50
backend : Annotated [
49
51
Union [BaseBackend , DockerBackend , GCPBackend , AWSBackend , VsphereBackend ],
@@ -62,6 +64,8 @@ class RunnerGroup(BaseModel, BaseRunnerGroup):
62
64
queued : int = Field (default = 0 , ge = 0 )
63
65
os : str = Field (default = "linux" )
64
66
arch : str = Field (default = "x64" )
67
+ job_started_script : Optional [str ] = Field (default = "" )
68
+ job_completed_script : Optional [str ] = Field (default = "" )
65
69
66
70
def __str__ (self ) -> str :
67
71
return (
@@ -149,6 +153,8 @@ def create_runner(self, github: GitHub) -> Runner | None:
149
153
labels = self .runner_labels ,
150
154
manager = self .manager ,
151
155
download_url = self .download_url (github ),
156
+ job_started_script = self .job_started_script ,
157
+ job_completed_script = self .job_completed_script ,
152
158
)
153
159
runner .save ()
154
160
runner .generate_jit_config (github )
0 commit comments