{"size": 291, "ext": "js", "max_stars_repo_path": "examples/workers/dynamicOptionsWorker.js", "max_stars_repo_name": "ErickWendel/workerpool", "max_stars_repo_stars_event_min_datetime": "2022-03-05T15:16:47.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-05T15:16:47.000Z", "max_issues_repo_path": "examples/workers/dynamicOptionsWorker.js", "max_issues_repo_name": "ErickWendel/workerpool", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/workers/dynamicOptionsWorker.js", "max_forks_repo_name": "ErickWendel/workerpool", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.25, "max_line_length": 71, "alphanum_fraction": 0.7697594502}
var workerpool = require('../..');

// this function reads an environment variable.
// This variable can be set dynamically per worker using onCreateWorker
function getUniqueWorkerId() {
  return process.env.UNIQUE_WORKER_ID
}

workerpool.worker({
  getUniqueWorkerId: getUniqueWorkerId
});
