externalHostname: String, optional, defaults to None
cpu: Int, optional, defaults to 1
memory: Int, optional defaults to 2000
scratch: Int, optional, defaults to 20000
gpu: Seq[Int], optional, defaults to Nil
context is the handle which is passed to the spawn and shutdown commands
hostname is the hostname to which the spawn process will bind externalHostname is the hostname to which the spawn process will bind and is reachable from outside of the system. This is relevant if there are multiple NICs