def METHOD_NAME(self):
    twenty_19 = datetime(year=2019, month=1, day=1)
    five_minutes = timedelta(minutes=5)
    try:
        chef_user = User.objects.get(email="chef@learningequality.org")
    except User.DoesNotExist:
        logger.error("Could not find chef user to republish channels")
        return
    channel_qs = Channel.objects.filter(
        public=True,
        deleted=False,
        main_tree__published=True
    ).filter(
        Q(last_published__isnull=True) |
        Q(last_published__lt=twenty_19, main_tree__modified__lte=F("last_published") + five_minutes)
    )
    for channel in channel_qs:
        try:
            kolibri_temp_db = create_content_database(channel, True, chef_user.id, False)
            os.remove(kolibri_temp_db)
            channel.last_published = timezone.now()
            channel.save()
        except Exception as e:
            logger.exception("Failed to export channel {} to kolibri_public because of error: {}".format(channel.id, e))