Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workflow-manager

Package Overview
Dependencies
Maintainers
1
Versions
68
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

  • 0.1.2
  • npm
  • Socket score

Version published
Weekly downloads
135
decreased by-42.06%
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.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(name, [options], [cb]) ⇒ Promise

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

ParamTypeDescription
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.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 04 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