text: "use strict";
  
  process.title = "MyWI territoireGraphBuilder-worker";
  
  require('../../ES-mess');
  
  var database = require('../../database');
  
  var territoireId = process.argv[2];
  
  database.complexQueries.getTerritoireGraph(territoireId)
      .then(function(graph){
          process.send(graph);
      })
      .catch(function(err){
          console.error("MyWI territoireGraphBuilder-worker error", territoireId, err, err.stack);
          process.kill();
      });
  