Changeset 3686


Ignore:
Timestamp:
Aug 23, 2017, 1:31:13 AM (5 weeks ago)
Author:
peter
Message:

only send jobs to queue if they have been submitted

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r3661 r3686  
    9898        test/scheduler2.test \
    9999        test/scheduler3.test \
     100        test/scheduler4.test \
    100101        test/segment.test test/smart_ptr.test   \
    101102        test/smith_waterman.test \
  • trunk/yat/utility/Scheduler.cc

    r3685 r3686  
    229229                // notify observers, jobs that have 'job' as prerequisite
    230230                for (size_t i=0; i<observers.size(); ++i)
    231                         if (!observers[i]->remove_prerequisite(job))
     231                        // If 'job' was the last blocking prerequisite and observer has
     232                        // been prepared (submitted directly or indirectly), then send
     233                        // the observer to queue.
     234                        if (!observers[i]->remove_prerequisite(job) &&
     235                                        observers[i]->status_ != Job::pristine) {
     236                                assert(observers[i]->status_ == Job::prepared);
    232237                                send2queue(observers[i]);
     238                        }
    233239        }
    234240
Note: See TracChangeset for help on using the changeset viewer.