Skip to content

Latest commit

 

History

History

worker

Worker

This is the worker service that runs background jobs for the app.

Stack

Architecture

Each task is implemented as a separate worker.

All the tasks are located in src/tasks directory.

  • convert-image - converts image to multiple sizes and formats, extracts exif data, uploads to s3, triggered by postgres trigger
  • delete-image - deletes image from s3, triggered by postgres trigger
  • notify-user - sends email notification to user, triggered by postgres trigger

TODO:

  • add tests
  • split convert-image task into subtasks