Skip to content

polling SQS via docker Python script #41

Description

@kingfischer16

Let's use Python because... Python. Every container will startup and immediately execute a run_mldeploy.py file (or some other suitable name). This file needs to:

  • Get the SQS queue name
  • Forever loop through polling the queue for a single job and then:
    • executing that job if found, then deleting the job from the queue upon completion
    • waiting some time (10s, 30s, 5 minutes?) then polling again
  • If something interrupts this flow and causes an exit, the instance needs to be reported as unhealthy so a new one can replace it and start working.

Custom health status: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions