Skip to content

scheduled-tasks create

apppack scheduled-tasks create

schedule a task

Synopsis

Schedule a command to run on a recurring schedule in the future.

Be sure to wrap your command and schedule in quotes to ensure they are read as a single argument. The schedule flag should use the AWS cron-like format as described at https://docs.aws.amazon.com/eventbridge/latest/userguide/scheduled-events.html#cron-expressions

apppack scheduled-tasks create --schedule "<min> <hr> <day-mon> <mon> <day-wk> <yr>" "<command>"

Examples

apppack -a my-app scheduled-tasks create --schedule "0 0 * * ? *" "your-command --args"  # run daily at midnight UTC
apppack -a my-app scheduled-tasks create --schedule "0/10 * * * ? *" "your-command --args"  # run every 10 minutes

Options

  -h, --help              help for create
  -s, --schedule string   cron-like schedule. See https://docs.aws.amazon.com/eventbridge/latest/userguide/scheduled-events.html#cron-expressions

Options inherited from parent commands

  -a, --app-name string   app name (required)
      --debug             enable debug logging

SEE ALSO