Commit 4588a2da authored by MOMMESSIN Clement's avatar MOMMESSIN Clement
Browse files

Add storage_mapping in EXECUTE_JOB event

parent 066ffc5f
...@@ -154,6 +154,12 @@ class Batsim(object): ...@@ -154,6 +154,12 @@ class Batsim(object):
if io_jobs is not None and job.id in io_jobs: if io_jobs is not None and job.id in io_jobs:
message["data"]["additional_io_job"] = io_jobs[job.id] message["data"]["additional_io_job"] = io_jobs[job.id]
if hasattr(job, "storage_mapping"):
message["data"]["storage_mapping"] = job.storage_mapping
self.jobs[job.id].storage_mapping = job.storage_mapping
self.jobs[job.id].allocation = job.allocation
self._events_to_send.append(message) self._events_to_send.append(message)
self.nb_jobs_scheduled += 1 self.nb_jobs_scheduled += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment