From 6b165aa0ff2758c1c1010a0eb2d5b0c31a5327ab Mon Sep 17 00:00:00 2001 From: brb Date: Thu, 13 Jul 2023 12:54:32 +0200 Subject: [PATCH] updated to find moved runner script --- code/app.py | 2 +- code/runner_script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/app.py b/code/app.py index 085dd92..ddae780 100644 --- a/code/app.py +++ b/code/app.py @@ -54,7 +54,7 @@ def handle_event(request: GiteaRequest): # clone repository local_repo_dir = clone_repository(repo_url) # locate runner script - runner_script_path = local_repo_dir / 'runner_script.yml' + runner_script_path = local_repo_dir / '.gitea' / 'gpu_runner' / 'script.yml' if not runner_script_path.exists(): raise HTTPException( status_code=200, diff --git a/code/runner_script.py b/code/runner_script.py index 2982112..800a7db 100644 --- a/code/runner_script.py +++ b/code/runner_script.py @@ -24,6 +24,6 @@ class RunnerScript(BaseModel): if __name__ == '__main__': - path = Path(__file__).parent.parent / 'runner_script.yml' + path = Path('.gitea') / 'gpu_runner' / 'script.yml' rs = RunnerScript.from_file(path) print(rs)