Bots and tasks

Bots, workers and scheduled tasks, in one place

Not every app is a website. Sura recognizes bots and workers, runs extra processes next to the app and runs tasks at the time you pick.

The documentation is in Portuguese for now.

Processes

  • webnode dist/server.jsRunning
  • workernode dist/queue.jsRunning
  • botpython bot.pyRunning

Scheduled tasks

  • */15 * * * *node scripts/sync.jsNext: every 15 minSuccess
  • @dailynode scripts/relatorio.jsNext: 03:00 UTCSuccess
Illustrative example.

What comes with it

Bots and workers with no port

Discord and Telegram bots, queues (BullMQ, Celery, RQ) and the like are recognized and start with no public address.

Extra processes

Run a queue worker or a scheduler next to the app, with the same image, the same variables and the same volumes.

Scheduled tasks

Commands at the time you pick (*/15 * * * *, @daily), with a time zone, a time limit and the next runs shown before you save.

Run now and history

Run a task right away and see the status, exit code and output of every run in the last 30 days.

Never twice at once

A task never runs twice at the same time. If it is still running, the next one is skipped and logged.

Alerts when it breaks

A process that crashes or a task that fails becomes an alert in your channels, once per streak of failures.