runners.scheduler - vladzaharia/bitburner GitHub Wiki

Module: runners/scheduler

Table of contents

Functions

Executable

main

main(ns): Promise<void>

Automatically execute a parallelized HWG cycle on all availbe hosts.

On each pool, will:

  • Split hackable hosts by workers in pool
  • Check if any host is low on money
  • Execute 80W/20G (if money needed) or 25H/25W/50G scripts on hosts in pool

Pools:

  • Personal worker pools, ps-worker[0..n]
  • Rooted server pools, with HOSTS_PER_POOL
  • ["home"]

export

example

run /runner/scheduler.js

Parameters

Name Type Description
ns NS The Netscript object.

Returns

Promise<void>

Defined in

runners/scheduler.ts:46

⚠️ **GitHub.com Fallback** ⚠️