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

Add torque to the development environment #18

Open
slifty opened this issue Apr 30, 2021 · 1 comment
Open

Add torque to the development environment #18

slifty opened this issue Apr 30, 2021 · 1 comment

Comments

@slifty
Copy link
Contributor

slifty commented Apr 30, 2021

Oh the irony!

Torque itself is not actually part of this development environment. It's used in it, but only in the sense that ansible downloads it and sets it up in competitions.

We may want to do something like what we do with SimpleBook, where we run the Ansible scripts which would be used to power production, but ultimately delete the "ansible checked out" copy on the guest machine and replace it with a mounted copy.

If / when we do this we would want to consider wrapping torque in gunicorn similar to how we do on SimpleBook. This lets us do things like trivially restart torque when code changes.

@frankduncan
Copy link
Collaborator

Be aware that now torque spawns a background thread that does cache rebuilding (in the postgres branch, which will get merged to main probably before this is handled). Whatever you end up doing, make sure that you are restarting the whole service on code changes. The development environment naturally just restarts the web part of the service.

slifty added a commit that referenced this issue Nov 3, 2021
By mounting torque we at least have access to it in our vagrant machine;
this will be important as we start to use a local copy of torque in the
development environment, instead of the one installed by ansible.

Issue #18
slifty added a commit that referenced this issue Nov 3, 2021
Right now our dev environment is locked into using whatever version of
torque production uses; this means we can't actually develop torque
using this development environment!

Rather than reimplement the entire ansible script we still run it (which
sets up things like supervisor, prerequisite services, databases, etc).
Once that's done, however, we swap in our mounted code and re-run the
python dependencies.

Issue #18
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

No branches or pull requests

2 participants