diff --git a/doc/changelog.d/265.miscellaneous.md b/doc/changelog.d/265.miscellaneous.md new file mode 100644 index 00000000..5186c545 --- /dev/null +++ b/doc/changelog.d/265.miscellaneous.md @@ -0,0 +1 @@ +Added missing optional arguments for job start/create \ No newline at end of file diff --git a/src/ansys/conceptev/core/app.py b/src/ansys/conceptev/core/app.py index 68228dc1..837c8145 100644 --- a/src/ansys/conceptev/core/app.py +++ b/src/ansys/conceptev/core/app.py @@ -324,6 +324,8 @@ def create_submit_job( account_id: str, hpc_id: str, job_name: str | None = None, + docker_tag: str = "default", + extra_memory: bool = False, ) -> dict: """Create and then submit a job.""" if job_name is None: @@ -341,6 +343,8 @@ def create_submit_job( "uploaded_file": uploaded_file, "account_id": account_id, "hpc_id": hpc_id, + "docker_tag": docker_tag, + "extra_memory": extra_memory, } job_info = post(client, "/jobs:start", data=job_start, account_id=account_id) return job_info diff --git a/tests/test_app.py b/tests/test_app.py index d46d0ea2..612e1da5 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -279,6 +279,8 @@ def test_create_submit_job(httpx_mock: HTTPXMock, client: httpx.Client): "uploaded_file": mocked_job[1], "account_id": account_id, "hpc_id": hpc_id, + "docker_tag": "default", + "extra_memory": False, } httpx_mock.add_response( url=f"{conceptev_url}/jobs:start?design_instance_id=123&account_id={account_id}",