comparison OrthancFramework/Sources/JobsEngine/JobsEngine.cpp @ 5853:4d932683049d get-scu tip

very first implementation of C-Get SCU
author Alain Mazy <am@orthanc.team>
date Tue, 29 Oct 2024 17:25:49 +0100
parents f7adfb22e20e
children
comparison
equal deleted inserted replaced
5839:7aef730c0859 5853:4d932683049d
130 { 130 {
131 JobsRegistry::RunningJob running(engine->GetRegistry(), engine->threadSleep_); 131 JobsRegistry::RunningJob running(engine->GetRegistry(), engine->threadSleep_);
132 132
133 if (running.IsValid()) 133 if (running.IsValid())
134 { 134 {
135 CLOG(INFO, JOBS) << "Executing job with priority " << running.GetPriority() 135 std::string jobType;
136 running.GetJob().GetJobType(jobType);
137
138 CLOG(INFO, JOBS) << "Executing " << jobType << " job with priority " << running.GetPriority()
136 << " in worker thread " << workerIndex << ": " << running.GetId(); 139 << " in worker thread " << workerIndex << ": " << running.GetId();
137 140
138 while (engine->IsRunning()) 141 while (engine->IsRunning())
139 { 142 {
140 if (!engine->ExecuteStep(running, workerIndex)) 143 if (!engine->ExecuteStep(running, workerIndex))