def __init__(self, id, backend=None, task_name=None, app=None, parent=None):
    self.app = app_or_default((app or self.app))
    self.id = id
    self.backend = (backend or self.app.backend)
    self.task_name = task_name
    self.parent = parent
    self._cache = None
def __init__(self, id, backend=None, task_name=None, app=None, parent=None):
    self.app = app_or_default((app or self.app))
    self.id = id
    self.backend = (backend or self.app.backend)
    self.task_name = task_name
    self.parent = parent
    self._cache = None