Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker localdev #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

brianporeilly
Copy link
Contributor

Relevant issue: N/A

Description:

Setup local docker development environment.

Also update deps (to fix tests and get docker compose build working)

Notes:

Testing Instructions:

docker compose up

Checklist:

  • Code Quality
  • Pep-8
  • Tests (if applicable)
  • Success Criteria Met
  • Inline Documentation
  • Wiki Documentation (if applicable)

@itsthejoker
Copy link
Contributor

The issue with lightweight-queue is that it can't handle the way that we declare the settings in this project; by using alexandria.settings.routing as the starting settings file, DLQ expects that all the settings will be available immediately in that file instead of querying the settings later when they're needed (which is how systems like Django Rest Framework handle it). My fork inserts that functionality while we wait for thread/django-lightweight-queue#62, thread/django-lightweight-queue#64, and thread/django-lightweight-queue#70 to be merged.

@itsthejoker
Copy link
Contributor

I've also been thinking that it would be easier to move to a different task runner; the problem is finding something that is light enough to run the very small list of things we need to do, which is essentially sending emails and fetching images. That's obviously out of scope for this, but if you have any suggestions about options then I'm open to them over here: #24

Mostly it's that I think that dealing with Celery is completely overkill for the complexity level here. Ideally I'd switch to a task queue system that uses Postgres as the backend (because the number of tasks is really just that small) but as email counts grow then keeping redis around (and potentially using it as a cache as well) isn't a bad idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants