from __future__ import absolute_import, print_function, unicode_literals

from django.apps import AppConfig


class KolibriTasksConfig(AppConfig):
    name = 'kolibri.tasks'
    label = 'kolibritasks'
    verbose_name = 'Kolibri Tasks'

    def ready(self):
        pass

from __future__ import absolute_import, print_function, unicode_literals

from django.apps import AppConfig


class KolibriTasksConfig(AppConfig):
    name = 'kolibri.tasks'
    label = 'kolibritasks'
    verbose_name = 'Kolibri Tasks'

    def ready(self):
        from kolibri.tasks.api import client
        client.clear(force=True)

Clear the job queue upon kolibri initialization.
Clear the job queue upon kolibri initialization.

  from __future__ import absolute_import, print_function, unicode_literals
  
  from django.apps import AppConfig
  
  
  class KolibriTasksConfig(AppConfig):
      name = 'kolibri.tasks'
      label = 'kolibritasks'
      verbose_name = 'Kolibri Tasks'
  
      def ready(self):
-         pass
+         from kolibri.tasks.api import client
+         client.clear(force=True)
  
Clear the job queue upon kolibri initialization.
## Code Before:
from __future__ import absolute_import, print_function, unicode_literals

from django.apps import AppConfig


class KolibriTasksConfig(AppConfig):
    name = 'kolibri.tasks'
    label = 'kolibritasks'
    verbose_name = 'Kolibri Tasks'

    def ready(self):
        pass

## Instruction:
Clear the job queue upon kolibri initialization.
## Code After:
from __future__ import absolute_import, print_function, unicode_literals

from django.apps import AppConfig


class KolibriTasksConfig(AppConfig):
    name = 'kolibri.tasks'
    label = 'kolibritasks'
    verbose_name = 'Kolibri Tasks'

    def ready(self):
        from kolibri.tasks.api import client
        client.clear(force=True)
