Maple
Docs / Basics

Your first steps

This page sets up Maple with a local PostgreSQL and runs a first job. It assumes Maple is installed.

Create the tables

$ export MAPLE_DATABASE_URL=postgres://localhost/app
$ maple migrate
applied 6 migrations to schema maple

Start a worker

Your application needs an endpoint that runs jobs. For a first try, any server that answers 200 will do:

$ maple worker --concurrency 2
worker started: queues=default concurrency=2

Enqueue a job

In another terminal:

$ maple enqueue send_welcome '{"user": 42}'
enqueued job 1

The worker picks the job up right away and logs the result.

Next steps