function determineWorkerENV(worker) {
        const options = {};

        if (worker.service_context) {
            const envConfig = JSON.parse(worker.service_context);
            _.assign(options, envConfig);
            options.__process_restart = true;
            options.service_context = worker.service_context;
        }

        return options;
    }
function determineWorkerENV(worker) {
        const options = {};

        if (worker.service_context) {
            const envConfig = JSON.parse(worker.service_context);
            _.assign(options, envConfig);
            options.__process_restart = true;
            options.service_context = worker.service_context;
        }

        return options;
    }
function determineWorkerENV ( worker ) { const options = { } ; if ( worker . service_context ) { const envConfig = JSON . parse ( worker . service_context ) ; _ . assign ( options , envConfig ) ; options . __process_restart = true ; options . service_context = worker . service_context ; } return options ; }
assignment is set at /lib/api/start_workers
assignment is set at / lib / api / start_workers