Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

topcoder-archive/topcoder-platform-schedule-executor

Repository files navigation

Schedule Executor

This module sets up the state machine and lambda functions to process events. This module is responsibile for actually executing the api calls registered with the Schedule API. The registration of the events has to be done through the API. This executor only runs the events after they have been registered.

Development status

Total alertsLanguage grade: JavaScript

Deployment status

Dev: CircleCI Prod: CircleCI

Requirements

  • node v10

Environment Variables

  • AUTH0_URL: AUTH0 URL, used to get M2M token
  • AUTH0_AUDIENCE: AUTH0 audience, used to get M2M token
  • TOKEN_CACHE_TIME: AUTH0 token cache time, used to get M2M token
  • AUTH0_CLIENT_ID: AUTH0 client id, used to get M2M token
  • AUTH0_CLIENT_SECRET: AUTH0 client secret, used to get M2M token

Deploy

  • Make sure to use Node v10+ by command node -v. We recommend using NVM to quickly switch to the right version:

    nvm use
  • In the scheduler-executor root directory create .env file with the next environment variables. Values for Auth0 config should be shared with you on the forum.

    # Auth0 config
    AUTH0_URL=
    AUTH0_AUDIENCE=
    TOKEN_CACHE_TIME=
    AUTH0_CLIENT_ID=
    AUTH0_CLIENT_SECRET=
    
    • Values from this file would be automatically used by npm commands.
    • ⚠️ Never commit this file or its copy to the repository!
npm install
npm run deploy

Destory instances

Run npm run destroy to clean up AWS resources.

About

Scheduler API and Executor that works within the AWS ecosystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •