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

Allow hosting job scripts #41

Open
jonnor opened this issue Jan 1, 2018 · 0 comments
Open

Allow hosting job scripts #41

jonnor opened this issue Jan 1, 2018 · 0 comments

Comments

@jonnor
Copy link
Member

jonnor commented Jan 1, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant