1.1.2 • Published 7 years ago

aws-step-father v1.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Step Father

Polling worker for AWS StepFunctions.

const StepFather = require('aws-step-father')
const AWS = require('aws-sdk')
const stepFunctions = new AWS.StepFunctions()

const worker = new StepFather(stepFunctions, {
  activityArn: <string>,
  executableMethod: <function>,
  workerName: <string>,
  pollInterval: <integer>,
  heartbeatInterval: <integer>
})

worker.on('success', (data) => console.log(`Task ${data.taskToken} completed!`))

worker.start()

Options

  • activityArn: ARN string of activity (required)
  • executableMethod: Method that will be executed with activity input. Must return a Promise. (required)
  • workerName: Name of worker
  • pollInterval: Polling interval for tasks, defaults to 65000
  • heartbeatInterval: Heartbeat interval for tasks, defaults to 10000

Events

  • start: Emitted on task start.
  • success: Emitted on task success.
  • failure: Emitted on task failure.
  • error: Emitted on communication error with StepFunctions API.
1.1.2

7 years ago

1.1.1

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago