Restructured all the modules

The core module was becoming too large.
By splitting it in  cluster, monitor and tasks it becomes more manageable. It also reflects the documentation structure.
This commit is contained in:
Ilan Steemers
2015-07-03 15:12:11 +02:00
parent b378d18098
commit b113a52825
13 changed files with 399 additions and 361 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
from django.contrib import admin
from django_q.core import async
from django.utils.translation import ugettext_lazy as _
from .tasks import async
from .models import Success, Failure, Schedule
@@ -35,12 +35,12 @@ def retry_failed(FailAdmin, request, queryset):
task.delete()
retry_failed.short_description = "Resubmit selected tasks to Q"
retry_failed.short_description = _("Resubmit selected tasks to queue")
class FailAdmin(admin.ModelAdmin):
list_display = (
u'name',
'name',
'func',
'started',
'result'
@@ -61,7 +61,7 @@ class FailAdmin(admin.ModelAdmin):
class ScheduleAdmin(admin.ModelAdmin):
list_display = (
u'id',
'id',
'func',
'schedule_type',
'repeats',