Skip to content

Commit

Permalink
wfl can be more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
dgruber committed Dec 9, 2018
1 parent bcb2fbc commit 9a8094c
Show file tree
Hide file tree
Showing 27 changed files with 2,471 additions and 21 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -59,7 +59,12 @@ process itself.

_wfl_ works with simple primitives: *context*, *workflow*, *job*, and *jobtemplate*

Jobs can also be processed in [streams](https://github.com/dgruber/wfl/blob/master/examples/stream/stream.go).
Experimental: Jobs can also be processed in [job control streams](https://github.com/dgruber/wfl/blob/master/examples/stream/stream.go).

First support for logging is also available. Log levels can be controlled by environment variables
(_export WFL_LOGLEVEL=DEBUG_ or _INFO_ _WARNING_ _ERROR_). Applications can use the same
logging facility by getting the logger from the workflow (_workflow.Logger()_) or registering
your own logger in a workflow _(SetLogger(Logger interface)_).

### Getting Started

Expand Down
7 changes: 5 additions & 2 deletions context.go
Expand Up @@ -3,11 +3,12 @@ package wfl
import (
"errors"
"fmt"
"github.com/dgruber/drmaa2interface"
"github.com/dgruber/drmaa2os"
"os"
"path/filepath"
"time"

"github.com/dgruber/drmaa2interface"
"github.com/dgruber/drmaa2os"
)

// Context contains a pointer to execution backend and configuration for it.
Expand Down Expand Up @@ -150,6 +151,8 @@ func NewCloudFoundryContextByCfg(cfg CloudFoundryConfig) *Context {
}
}

// DRMAA2SessionManagerContext creates a new Context using any given DRMAA2
// Session manager (implementing the drmaa2interface).
func DRMAA2SessionManagerContext(sm drmaa2interface.SessionManager) *Context {
return &Context{
sm: sm,
Expand Down

0 comments on commit 9a8094c

Please sign in to comment.