Skip to content

CF: ECS Feed import task #30

@chrxr

Description

@chrxr

This task will run the load_feed_people() function on a regular basis, pulling down the directory feed and refreshing the postgres database with the extracted data. This function also triggers a reindexing of the data in Algolia.

Docker image

This ECS task will use the same Docker image as #4.

ECS Command

This ECS task will be mostly identical to #4. The exception is that we will utilize the command parameter in the Container Definition to run the following command:

python manage.py shell --command="from feedperson.utils import load_feed_people; load_feed_people()"

By passing this command, the container entrypoint script will bypass the server startup commands used by the Django admin task, and will only run this command before shutting down.

ECS Service

This task should utilize the same ECS service as the Django Admin task.

Outbound access

This task will pull down the directory feed from the internet, and so will require outbound access to the public internet.

Environment variables

The environment variables for this container should be identical to the Django admin task.

Schedule

This task should run on a schedule. It should run every day at 6am.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions