@Dispatcher.launch
def set_upload_enabled():
    _ffi.lib.glean_set_upload_enabled(enabled)
    if ((original_enabled is False) and (cls.get_upload_enabled() is True)):
        cls._initialize_core_metrics()
    if ((original_enabled is True) and (cls.get_upload_enabled() is False)):
        DeletionPingUploadWorker.process()
@Dispatcher.launch
def set_upload_enabled():
    _ffi.lib.glean_set_upload_enabled(enabled)
    if ((original_enabled is False) and (cls.get_upload_enabled() is True)):
        cls._initialize_core_metrics()
    if ((original_enabled is True) and (cls.get_upload_enabled() is False)):
        DeletionPingUploadWorker.process()