def synchronize_apps_cache_wrapper(self, source = None, single_app_url = None): if source is None: source = 'scheduled' with my_app.app_context(): result = synchronize_apps_cache(source = source, single_app_url = single_app_url) sync(self, True) return result
def synchronize_apps_cache_wrapper(self, source = None): if source is None: source = 'scheduled' with my_app.app_context(): result = synchronize_apps_cache(source = source) task_sync_mongodb_recent.delay() return result
def synchronize_apps_cache_wrapper(self): with my_app.app_context(): result = synchronize_apps_cache() sync(self) return result