BB-209: Add setting to disable celery heartbeats
This PR adds a default ansible variable to disable celery heartbeats on supported configurations.
Testing instructions:
- Check out this branch on your Ocim devstack
- Create a new OpenEdX instance on Django Shell:
make shell
> instance = OpenEdXInstance.objects.create(
> name='Test Sandbox',
> sub_domain='test-heartbeats',
> )
- Spawn a new appserver from the web interface (you might have to do this twice, the first time it'll fail with a load balancer error)
- Check on the appserver configuration if the ansible variable was correctly set: Combined ansible vars:
worker_django_enable_heartbeats: false
This is just to check if the variable wa correctly set, no need to wait for the AppServer to completely spawn (I'll set up Ocim stage for that).
Don't forget to delete your instance with instance.delete()
after testing locally (you should never delete instances on stage or production.
Reviewers:
-
@jamestait -
@lgp171188