Changeset 365a44 for src/Jobs/JobMarket/SystemCommandJob.cpp
- Timestamp:
 - Sep 17, 2014, 10:33:09 PM (11 years ago)
 - Children:
 - 019b96
 - Parents:
 - c4c20a
 - git-author:
 - Frederik Heber <heber@…> (05/22/14 16:18:35)
 - git-committer:
 - Frederik Heber <heber@…> (09/17/14 22:33:09)
 - File:
 - 
      
- 1 edited
 
- 
          
  src/Jobs/JobMarket/SystemCommandJob.cpp (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/Jobs/JobMarket/SystemCommandJob.cpp
rc4c20a r365a44 64 64 #include "CodePatterns/Log.hpp" 65 65 #include "CodePatterns/toString.hpp" 66 67 // static entities 68 const unsigned int SystemCommandJob::MAX_ATTEMPTS = 3; 66 69 67 70 /** Constructor for class SystemCommandJob. … … 140 143 Chronos::getInstance().startTiming(WorkName); 141 144 FragmentResult::ptr s; 142 { 145 int exitflag = 255; 146 for(unsigned int counter = 0; 147 (counter < MAX_ATTEMPTS) && (exitflag != 0); 148 ++counter) { 143 149 // open process 144 150 std::string command_args = command+std::string(" ")+tmpTemplate; … … 153 159 } 154 160 155 int exitflag;156 161 // read stdout from process 157 162 const int fd = fileno(stdoutstream); … … 171 176 172 177 if (exitflag != 0) 173 ELOG(1, "Job " << getId() << " failed on executing: " << command_args); 174 s->exitflag = exitflag; 175 } 178 ELOG(1, "Job " << getId() << " on attempt #" << counter+1 179 << " failed on executing: " << command_args); 180 } 181 s->exitflag = exitflag; 176 182 Chronos::getInstance().endTiming(WorkName); 177 183  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  