Simple and hassle free background tasks

is a service to run background jobs in Docker.

1. Write the code for your worker

Dolater.io runs docker images, so you can use any language! Follow our documentation on how to write your workers.

2. Create a Docker image for your worker

Make your worker run in Docker. You can see our docs to get an idea of how to do it.

3. Create a worker with that image

Use the API to create a worker using your worker docker images. You'll need to publish it as a public image in hub.docker.com and use its name when you create your worker.

4. Queue jobs to your worker

Use our API to submit jobs to your worker. Dolater.io runners will process the queue as quick as posible!

5. Get the output of your jobs

When a job is completed, you can get its output using the API.

Demo time!

We have a server running the API and some workers too. It's at demo.dolater.io. Feel free to use it to play with our API. For example, you can run the parrot worker, a really silly worker that sends to the stdout whatever is sent to the stdin. But first, create your own worker running the following:

curl http://demo.dolater.io/v1/workers \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
    "docker_image": "dolaterio/parrot"
  }'
Once you have your worker created, take its id and queue a task on it:
curl "http://demo.dolater.io/v1/jobs" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
    "worker_id": WORKER_ID,
    "stdin": "Hello world!"
  }'
This might take a bit to finish. Using the job id you can get the status of the job running:
curl "http://demo.dolater.io/v1/jobs/JOB_ID"
Your job will eventually finish and you will se that the stdin and stdout are the same, since this is what that image is doing.