Revert "fix celery task reaper"

This reverts commit 1359208a99.
This commit is contained in:
Ryan Petrello
2018-06-18 16:18:20 -04:00
parent b4c30576af
commit ef6433c6f9
6 changed files with 19 additions and 97 deletions

View File

@@ -45,11 +45,6 @@ class Instance(BaseModel):
uuid = models.CharField(max_length=40)
hostname = models.CharField(max_length=250, unique=True)
system_hostname = models.CharField(
max_length=255,
db_index=True,
help_text="Machine hostname",
)
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
last_isolated_check = models.DateTimeField(
@@ -114,10 +109,6 @@ class Instance(BaseModel):
def jobs_total(self):
return UnifiedJob.objects.filter(execution_node=self.hostname).count()
@property
def celery_system_hostname(self):
return 'celery@{}'.format(self.system_hostname)
def is_lost(self, ref_time=None, isolated=False):
if ref_time is None:
ref_time = now()