Skip to content

Commit

Permalink
rename url to path on job script file properties
Browse files Browse the repository at this point in the history
  • Loading branch information
fschuch committed Jul 12, 2023
1 parent 547fa1f commit 668635a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster_agent/jobbergate/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class JobScriptFile(pydantic.BaseModel, extra=pydantic.Extra.ignore):
filename: str
file_type: FileType

url: str
path: str


class JobScript(pydantic.BaseModel, extra=pydantic.Extra.ignore):
Expand Down
2 changes: 1 addition & 1 deletion cluster_agent/jobbergate/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def submit_job_script(
local_script_path = submit_dir / filename
local_script_path.parent.mkdir(parents=True, exist_ok=True)

response = await backend_client.get(metadata.url)
response = await backend_client.get(metadata.path)
response.raise_for_status()
local_script_path.write_bytes(response.content)

Expand Down
2 changes: 1 addition & 1 deletion tests/jobbergate/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def dummy_job_script_files():
"id": 1,
"filename": "application.sh",
"file_type": "ENTRYPOINT",
"url": "jobbergate/job-scripts/1/upload/application.sh",
"path": "jobbergate/job-scripts/1/upload/application.sh",
},
}

Expand Down

0 comments on commit 668635a

Please sign in to comment.