def METHOD_NAME(obj, event):
    if IRelationBrokenEvent.providedBy(event):
        # these trigger too much!
        return
    try:
        tasks.file_edited.delay(obj)
    except CannotGetPortalError:
        pass