Commit ed7e85cc507e48639317cf359d0ebbc39311a4d8

Authored by Elena.Budnik
1 parent d3f16a02

is not run if service is down

Showing 1 changed file with 10 additions and 4 deletions   Show diff stats
php/RemoteDataCenter/makeArgs.php
... ... @@ -33,12 +33,18 @@
33 33 $class = $base->getAttribute('xml:id');
34 34 echo PHP_EOL.$class.PHP_EOL;
35 35 $center = new $class();
36   -
37   - $center->makeArgumentsList();
  36 + if ($center->monitor())
  37 + {
  38 + $center->makeArgumentsList();
38 39  
39 40 //copy PlotSettings if exists
40   - if (file_exists(DATAPATH."SimuTemplate/".$center->plotSettings))
41   - copy(DATAPATH."SimuTemplate/".$center->plotSettings, RemoteData.$center->baseID.'/'.$center->plotSettings);
  41 + if (file_exists(DATAPATH."SimuTemplate/".$center->plotSettings))
  42 + copy(DATAPATH."SimuTemplate/".$center->plotSettings, RemoteData.$center->baseID.'/'.$center->plotSettings);
  43 + }
  44 + else
  45 + {
  46 + print_r("Attention : $class service is down");
  47 + }
42 48 }
43 49  
44 50 }
... ...