Skip to content

Commit a8a61fc

Browse files
committed
sched: service 1 partition per process
1 parent af25f53 commit a8a61fc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/TfScheduler/TfSchedulerDevice.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ void TfSchedulerDevice::TfSchedulerServiceThread()
122122
lNewInstance->start();
123123
}
124124
IDDLOG("Created new scheduler instance. partition={}", lNewPartitionRequest.mPartitionId);
125+
break; // Only service one partition per process
125126
} else {
126127
EDDLOG("Scheduler instance already exists. partition={}",lNewPartitionRequest.mPartitionId);
127128
}
128-
129-
130129
}
131130

132-
std::this_thread::sleep_for(2000ms);
131+
std::this_thread::sleep_for(1000ms);
133132
}
134133

135134
DDDLOG("Exiting TfSchedulerServiceThread.");

0 commit comments

Comments
 (0)