def METHOD_NAME(self):
    # Prevents the scheduler from running twice, django runs TWO instances of apps by default
    if os.environ.get('RUN_MAIN', None) != 'true':
        try:
            import uwsgi
            if uwsgi.worker_id() == 1:
                threading.Thread(target=scheduleConfig.schedulePinger, args=(), daemon=True).start()
        except ImportError:
            pass