Open
Description
The worker will be able to retrieve tasks from the SQS queue and achieve those ones.
Specifications:
- add a worker flag (--worker=true by example), if the flag is true then run the worker instead of the API
- check if ES is available
- listens to the SQS queue to retrieve tasks
- run the task
- handle task success (send acknowledge to the queue) or error (send changes on visibility timeout to ~15min to re-run the job later)
- send logs on cloudwatch groups logs (separated by task by account:
${task_name}/${account_id}