Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Allow hosting job scripts #41

@jonnor

Description

@jonnor

Right now the consumer must ensure that .jsjob scripts are available at the specified HTTP(s). This is a bit tedious when one just wants to provide something locally. Should be able to specify a mapping of hosted scripts, and let the Runner serve them via its existing HTTP server.

var options = {
   hostJobs: {
     'path-to-expose-on': fileContents,
     ...
   }
}
var runner = new Runner(options);
runner.runJob('path-to-expose-on', ...

The CLI tool should then use this functionality when there is no protocol specified for the .jsjob URL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions