0.0.31 • Published 9 years ago

thinkloot-sdk v0.0.31

Weekly downloads
3
License
ISC
Repository
github
Last release
9 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.
0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago