Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks

This commit is contained in:
Matthew Jones
2014-01-27 11:37:18 -05:00
parent 188d7b41bb
commit 4a598d7c0a
6 changed files with 87 additions and 98 deletions
+6
View File
@@ -685,6 +685,12 @@ class InventorySource(PrimordialModel):
# FIXME: Prevent update when another one is active!
return bool(self.source)
def update_signature(self, **kwargs):
if self.can_update:
inventory_update = self.inventory_updates.create()
inventory_update_sig = inventory_update.start_signature()
return (inventory_update, inventory_update_sig)
def update(self, **kwargs):
if self.can_update:
inventory_update = self.inventory_updates.create()