How to use the batch-cluster.BatchCluster function in batch-cluster

To help you get started, we’ve selected a few batch-cluster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github photostructure / exiftool-vendored.js / src / ExifTool.ts View on Github external
? _child_process.spawn(
            "perl",
            [o.exiftoolPath, ...o.exiftoolArgs],
            spawnOpts
          )
        : _child_process.spawn(o.exiftoolPath, o.exiftoolArgs, spawnOpts)
    this.options = {
      ...o,
      ignoreShebang,
      processFactory,
      exitCommand: o.exitCommand,
      versionCommand: o.versionCommand,
      // User options win:
      ...options
    }
    this.batchCluster = new bc.BatchCluster(this.options)
  }