diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-25T16·35+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-25T16·35+0100 |
commit | 40b2f11543ac78a68d01d4046fc4507da21f1ec9 (patch) | |
tree | 54975ac41af49a6f7124bf9cd48699d2dd8245fb /submitqueue/runner.go | |
parent | fecbf8b3e2efd4ba8c2e33159269000db2fbe1da (diff) |
frontend: only pass runner to MakeFrontend, add Runner.GetSubmitQueue()
Diffstat (limited to 'submitqueue/runner.go')
-rw-r--r-- | submitqueue/runner.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/submitqueue/runner.go b/submitqueue/runner.go index 2c84a7d69b7f..23ff46bea4b3 100644 --- a/submitqueue/runner.go +++ b/submitqueue/runner.go @@ -28,6 +28,11 @@ func (r *Runner) GetResults() (*time.Time, []*Result) { return r.currentlyRunning, r.results } +// GetSubmitQueue returns the submit queue object, to be consumed by the frontend +func (r *Runner) GetSubmitQueue() (*SubmitQueue) { + return r.SubmitQueue +} + // Trigger starts a new batch job // TODO: make sure only one batch job is started at the same time // if a batch job is already started, ignore the newest request |