Skip to content

Commit

Permalink
chore: black, mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
keithmanville committed Jul 2, 2024
1 parent a21428f commit d4e78cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/dioptra/restapi/v1/jobs/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from dioptra.restapi.errors import BackendDatabaseError
from dioptra.restapi.v1 import utils
from dioptra.restapi.v1.entrypoints.service import EntrypointIdService
from dioptra.restapi.v1.experiments.errors import ExperimentDoesNotExistError
from dioptra.restapi.v1.experiments.service import ExperimentIdService
from dioptra.restapi.v1.groups.service import GroupIdService
from dioptra.restapi.v1.queues.service import QueueIdService
Expand Down Expand Up @@ -783,9 +782,7 @@ def modify(
log: BoundLogger = kwargs.get("log", LOGGER.new())
log.debug("Modify job status by id", job_id=job_id, status=status)

job_dict = self._experiment_job_id_service.get(
experiment_id, job_id, log=log
)
job_dict = self._experiment_job_id_service.get(experiment_id, job_id, log=log)
job = job_dict["job"]

if status not in JOB_STATUS_TRANSITIONS.get(job.status, None):
Expand Down

0 comments on commit d4e78cb

Please sign in to comment.