Python celery.platforms.C_FORCE_ROOT Examples
The following are 1
code examples of celery.platforms.C_FORCE_ROOT().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
celery.platforms
, or try the search function
.
Example #1
Source File: run.py From luscan-devel with GNU General Public License v2.0 | 5 votes |
def start_wvs_spider_dispatch(target, cookie, Logger): app = Celery() app.config_from_object('wvs_celery_config') domain = get_crawl_domain(target) keys = get_save_crawl_folder_name(domain) Logger.log_verbose("Web Spider: Crawl Domain:%s, keys:%s" % (domain, keys)) Logger.log_verbose("Web Spider: Spider is Running!") app.send_task('wvs_tasks.wvs_spider_dispatch', args=[target, keys, cookie]) platforms.C_FORCE_ROOT = True Logger.log_verbose('Waiting spider return content..........') return wait_parse_result(keys)