Skip to content

BB-209: Add setting to disable celery heartbeats

This PR adds a default ansible variable to disable celery heartbeats on supported configurations.

Testing instructions:

  1. Check out this branch on your Ocim devstack
  2. Create a new OpenEdX instance on Django Shell:
make shell
> instance = OpenEdXInstance.objects.create(        
>     name='Test Sandbox',                                                               
>     sub_domain='test-heartbeats',
> )
  1. 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)
  2. 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:

Merge request reports