Regardless of whatever model and code gets copied into the Docker image, there will need to be a file, e.g. handler.py, that:
- Polls SQS for 1 new task
- Gathers required resources (data, hyperparameters) before the execution
- Executes the task (user definition, making use of user code via imports)
- Sends the results (metrics, files) to appropriate storage (S3, RDS)
Regardless of whatever model and code gets copied into the Docker image, there will need to be a file, e.g.
handler.py, that: