Changeset f91f47
- Timestamp:
- Feb 2, 2023, 8:14:03 PM (3 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 1b84b8
- Parents:
- 75a0cb
- Location:
- ThirdParty/JobMarket/src/JobMarket
- Files:
-
- 3 edited
-
FragmentScheduler.cpp (modified) (1 diff)
-
Pool/PoolGuard.cpp (modified) (3 diffs)
-
Pool/PoolGuard.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/JobMarket/src/JobMarket/FragmentScheduler.cpp
r75a0cb rf91f47 69 69 boost::bind(&FragmentScheduler::removeWorker, boost::ref(*this), _1), 70 70 boost::bind(&FragmentQueue::resubmitJob, boost::ref(JobsQueue), _1), 71 boost::bind(&FragmentQueue::isResultPresent, boost::cref(JobsQueue), _1), 71 72 OpQueue) 72 73 { -
ThirdParty/JobMarket/src/JobMarket/Pool/PoolGuard.cpp
r75a0cb rf91f47 42 42 const boost::function<void (const WorkerAddress)> _removeWorkerfunction, 43 43 const boost::function<void (const JobId_t)> _resubmitJobfunction, 44 const boost::function<bool (const JobId_t)> _checkResultPresentfunction, 44 45 OperationQueue &_OpQueue) : 45 46 CheckAtNextInterval(false), … … 48 49 removeWorkerfunction(_removeWorkerfunction), 49 50 resubmitJobfunction(_resubmitJobfunction), 51 checkResultPresentfunction(_checkResultPresentfunction), 50 52 OpQueue(_OpQueue), 51 53 connection(_connection), … … 84 86 << currentiter->second << " than last time " 85 87 << iter->second << ", scheduling for checkalive."); 88 } 89 } else { 90 // check whether the result is not present 91 if (!checkResultPresentfunction(iter->second)) { 92 LOG(1, "INFO: Worker " << address << " is no longer busy but the job #" 93 << iter->second << "'s result is not present, resubmitting."); 94 resubmitJobfunction(iter->second); 86 95 } 87 96 } -
ThirdParty/JobMarket/src/JobMarket/Pool/PoolGuard.hpp
r75a0cb rf91f47 44 44 * @param _removeWorkerfunction bound function to remove worker by its WorkerAddress 45 45 * @param _resubmitJobfunction bound function to resubmit job by its JobId_t 46 * @param _checkResultPresentfunction bound function to check whether a job's result by its JobId_t is present 46 47 * @param _OpQueue access to operation queue for placing CheckAliveWorkerOperations 47 48 */ … … 52 53 const boost::function<void (const WorkerAddress)> _removeWorkerfunction, 53 54 const boost::function<void (const JobId_t)> _resubmitJobfunction, 55 const boost::function<bool (const JobId_t)> _checkResultPresentfunction, 54 56 OperationQueue &_OpQueue 55 57 ); … … 131 133 const boost::function<void (const JobId_t)> resubmitJobfunction; 132 134 135 //!> bound function for checking for a job result's presence 136 const boost::function<bool (const JobId_t)> checkResultPresentfunction; 137 133 138 //!> typedef for the internal list of workers 134 139 typedef std::map<WorkerAddress, JobId_t> WorkerList_t;
Note:
See TracChangeset
for help on using the changeset viewer.
