@shared_task()
def send_daily_email_notifications():
    from open_connect.accounts.models import User
    users_with_notifications = User.objects.filter(
        notification__subscription__period='daily',
        notification__consumed=False,
        notification__message__status='approved'
        ).distinct().only("id")

    for user in users_with_notifications:
        send_daily_digest_notification.delay(user.pk)
Get a random node ID, with eighth bit set as suggested by RFC 4122.
dataset/ETHPy150Open ofa/connect/open_connect/notifications/tasks.py/send_daily_email_notifications--crossover with--dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/third_party/uuid/uuid.py/_random_getnode