def clean_harvest_log(ctx): """Clean-up mechanism for the harvest log table. You can configure the time frame through the configuration parameter `ckan.harvest.log_timeframe`. The default time frame is 30 days """ flask_app = ctx.meta["flask_app"] with flask_app.test_request_context(): utils.clean_harvest_log()
def clean_harvest_log(self): utils.clean_harvest_log()