Options
All
  • Public
  • Public/Protected
  • All
Menu

Module runners/scheduler

Index

Executable

Executable

  • main(ns: 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

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Generated using TypeDoc