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

    1.0.2 • Public • Published

    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));

    Install

    npm i @pi-team-mn/aws-sf-task-runner

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.67 kB

    Total Files

    5

    Last publish

    Collaborators

    • gbvanrenswoude
    • alainnaipal
    • ddq-mn
    • kennethmartis
    • fbloembergen