X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fengine%2FBL_JobsManager.cxx;h=ab8019c516940956114096e02387e6c529f68ddb;hb=94317c743eafd6b6de89a47378e31410b4a8fdf3;hp=c7bf40e1796aacbd36ecfefc7d41f390f0a8091d;hpb=160698311c8deb02d7eb674f3a94f88d7199a877;p=modules%2Fjobmanager.git diff --git a/src/engine/BL_JobsManager.cxx b/src/engine/BL_JobsManager.cxx index c7bf40e..ab8019c 100644 --- a/src/engine/BL_JobsManager.cxx +++ b/src/engine/BL_JobsManager.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2009-2012 CEA/DEN, EDF R&D +// Copyright (C) 2009-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -297,7 +297,20 @@ BL::JobsManager::refresh_jobs_thread(void * object_ptr) else if (result_job != "") { if (object->_observer) + { object->_observer->sendEvent("refresh_job", "Ok", job->getName(), result_job); + + // get assigned hostnames when the job will start + if (result_job == "RUNNING") + { + std::string assigned_hostnames = object->_salome_services->get_assigned_hostnames(job); + if (assigned_hostnames != "") + { + // sent event "get_assigned_hostnames" + object->_observer->sendEvent("get_assigned_hostnames", "Ok", job->getName(), assigned_hostnames); + } + } + } } } }