Socket
Socket
Sign inDemoInstall

workflow-manager

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workflow-manager

Minimal Workflow orchestrator for AWS Batch


Version published
Weekly downloads
95
decreased by-46.02%
Maintainers
1
Weekly downloads
 
Created
Source

workflow-manager

workflow-manager client library.

WorkflowManager ⏏

workflow-manager client

Kind: Exported class

new WorkflowManager(options)

Create a new client object.

ParamTypeDefaultDescription
optionsObjectOptions for constructing a client object.
[options.address]stringURL where the server is located. Must provide this or the discovery argument
[options.discovery]boolUse clever-discovery to locate the server. Must provide this or the address argument
[options.timeout]numberThe timeout to use for all client requests, in milliseconds. This can be overridden on a per-request basis.
[options.retryPolicy]RetryPoliciesRetryPolicies.SingleThe logic to determine which requests to retry, as well as how many times to retry.

workflowManager.healthCheck([options], [cb]) ⇒ Promise

Checks if the service is healthy

Kind: instance method of WorkflowManager
Fulfill: undefined
Reject: BadRequest
Reject: InternalError
Reject: Error

ParamTypeDescription
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.getJobsForWorkflow(workflowName, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object[]
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDescription
workflowNamestring
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.startJobForWorkflow(input, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDescription
input
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.CancelJob(params, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: undefined
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDescription
paramsObject
params.jobIdstring
params.reason
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.GetJob(jobId, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDescription
jobIdstring
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.getWorkflows([options], [cb]) ⇒ Promise

Get the latest versions of all available workflows

Kind: instance method of WorkflowManager
Fulfill: Object[]
Reject: BadRequest
Reject: InternalError
Reject: Error

ParamTypeDescription
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.newWorkflow(NewWorkflowRequest, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object
Reject: BadRequest
Reject: InternalError
Reject: Error

ParamTypeDescription
NewWorkflowRequest
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.getWorkflowByName(params, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object[]
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDefaultDescription
paramsObject
params.namestring
[params.version]number
[params.latest]booleantrue
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

workflowManager.updateWorkflow(params, [options], [cb]) ⇒ Promise

Kind: instance method of WorkflowManager
Fulfill: Object
Reject: BadRequest
Reject: NotFound
Reject: InternalError
Reject: Error

ParamTypeDescription
paramsObject
[params.NewWorkflowRequest]
params.namestring
[options]object
[options.timeout]numberA request specific timeout
[options.span]SpanAn OpenTracing span - For example from the parent request
[options.retryPolicy]RetryPoliciesA request specific retryPolicy
[cb]function

WorkflowManager.RetryPolicies

Retry policies available to use.

Kind: static property of WorkflowManager

RetryPolicies.Exponential

The exponential retry policy will retry five times with an exponential backoff.

Kind: static constant of RetryPolicies

RetryPolicies.Single

Use this retry policy to retry a request once.

Kind: static constant of RetryPolicies

RetryPolicies.None

Use this retry policy to turn off retries.

Kind: static constant of RetryPolicies

WorkflowManager.Errors

Errors returned by methods.

Kind: static property of WorkflowManager

Errors.BadRequest ⇐ Error

BadRequest

Kind: static class of Errors
Extends: Error
Properties

NameType
messagestring

Errors.InternalError ⇐ Error

InternalError

Kind: static class of Errors
Extends: Error
Properties

NameType
messagestring

Errors.NotFound ⇐ Error

NotFound

Kind: static class of Errors
Extends: Error
Properties

NameType
messagestring

FAQs

Package last updated on 31 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc