Skip to content
Snippets Groups Projects

Resolve "adhoc_storage instances should keep track of jobs using them"

This MR associates registered adhoc storage instances with registered jobs.

To do so, it modifies both the job_manager and the adhoc_storage_manager classes to store shared_ptrs to admire::internal::job_info and admire::internal::adhoc_storage_info records. This allows returning the pointers when checking for information as well as modifying the records in a synchronized manner.

To keep track of adhoc_storage usage, the new internal adhoc_storage_info type includes a std::shared_ptr<job_info> m_client field that models the association. As of today, an adhoc storage instance can only have a single job client associated. Trying to add more will result in error.

Closes #85 (closed) #86 (closed) #88 (closed)

Edited by Alberto Miranda

Merge request reports

Pipeline #3252 passed

Pipeline passed for c5de2913 on amiranda/85-adhoc_storage-instances-should-keep-track-of-jobs-using-them

Merged by Ramon NouRamon Nou 2 years ago (Oct 19, 2022 9:15am UTC)

Loading

Pipeline #3254 passed

Pipeline passed for 0ccff750 on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading