diff --git a/setup.cfg b/setup.cfg index 47fdafb90..436468569 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,7 +47,7 @@ packages = find: zip_safe = True include_package_data = True install_requires = - SpiNNMachine == 1!7.1.1 + SpiNNMachine == 1!7.2.2 websocket-client [options.packages.find] diff --git a/spinnman/_version.py b/spinnman/_version.py index 2e7cea03b..fc8f24802 100644 --- a/spinnman/_version.py +++ b/spinnman/_version.py @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "1!7.1.1" +__version__ = "1!7.2.2" __version_month__ = "TBD" __version_year__ = "TBD" __version_day__ = "TBD" -__version_name__ = "Post_HBP" +__version_name__ = "TO DO" diff --git a/spinnman/spalloc/spalloc_client.py b/spinnman/spalloc/spalloc_client.py index 451bfffa8..53c036710 100644 --- a/spinnman/spalloc/spalloc_client.py +++ b/spinnman/spalloc/spalloc_client.py @@ -138,6 +138,17 @@ def __init__( self.__nmpi_user = nmpi_user logger.info("established session to {} for {}", service_url, username) + def get_job(self, job_id: str) -> SpallocJob: + """ + Get a job by its job id. + + :param str job_id: The job id. + :rtype: SpallocJob + """ + assert self.__session + return _SpallocJob( + self.__session, fix_url(f"{self.__jobs_url}/{job_id}")) + @staticmethod def open_job_from_database( service_url, job_url, cookies, headers) -> SpallocJob: