Skip to content

Continuously fetch and run an AWS Step Function activity task

License

Notifications You must be signed in to change notification settings

pi-team-mn/aws-sf-task-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-sf-task-runner

build status

Continuously fetch and run an AWS Step Function activity task

import { runForever } from './task-runner';

// Your own custom processor
// > input will be already JSON parsed by the task runner
// > the task runner will also JSON stringify you return value
function myProcessor(input) {
    console.log(input);
    return {'your own': 'custom result'};
}

// The task name should be set as an anvironment variable:
process.env.TASK_NAME='your-task-name-is-the-last-part-of-the-activity-arn';

runForever(myProcessor).catch(err => console.error(err));

About

Continuously fetch and run an AWS Step Function activity task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published