Ignore:
Timestamp:
11/06/12 12:52:07 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/schedframe/scheduling/policy/local/LocalManagementSystem.java

    r497 r555  
    198198 
    199199                                AllocationInterface<?> allocation = allocations.get(j); 
    200                                 if (allocation.isProcessing()) { 
     200                                if (allocation.getRequestedResources() == null || allocation.getRequestedResources().size() > 0) { 
    201201                                        ExecTask exec = (ExecTask) task;                                         
    202202                                        executeTask(exec, allocation.getRequestedResources()); 
     
    217217                Executable exec = (Executable)task; 
    218218                boolean allocationStatus = getAllocationManager().allocateResources(choosenResources); 
    219                 if(allocationStatus == false) 
     219                if(allocationStatus == false){ 
     220                        log.error("Task requires more resources than is availiable at this moment."); 
    220221                        return; 
     222                } 
     223 
    221224                removeFromQueue(task); 
    222225 
Note: See TracChangeset for help on using the changeset viewer.