def run(self, args): configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/' + str(inverted[connector_name]) + '/activate', 'PUT') send_slack_notif([{ 'title': 'Enable connectors', 'text': '- ' + connector_name }])
def run(self, args): configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/' + str(inverted[connector_name]) + '/reindex', 'POST') send_slack_notif([{ 'title': 'Manually reindexed connectors', 'text': '- ' + connector_name }]) return 0
def run(self, args): from deployer.src.helpers import make_request from deployer.src.fetchers import get_configs_from_website from deployer.src.helpers import send_slack_notif configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/' + str(inverted[connector_name]) + '/activate', 'PUT') send_slack_notif([{ 'title': 'Enable connectors', 'text': '- ' + connector_name }])
def run(self, args): from deployer.src.helpers import make_request from deployer.src.fetchers import get_configs_from_website from deployer.src.helpers import send_slack_notif configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/{}/activate'.format(inverted[connector_name]), "PUT") send_slack_notif([{ "title": "Enable connectors", "text": "- " + connector_name }])
def run(self, args): from deployer.src.helpers import make_request from deployer.src.fetchers import get_configs_from_website from deployer.src.helpers import send_slack_notif configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/{}/reindex'.format(inverted[connector_name]), "POST") send_slack_notif([{ "title": "Manually reindexed connectors", "text": "- " + connector_name }]) return 0
def run(self, args): from deployer.src.helpers import make_request from deployer.src.fetchers import get_configs_from_website from deployer.src.helpers import send_slack_notif from deployer.src.algolia_helper import remove_crawling_issue configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/{}/deactivate'.format(inverted[connector_name]), "PUT") remove_crawling_issue(connector_name) send_slack_notif([{ "title": "Disable connectors", "text": "- " + connector_name }])
def run(self, args): from deployer.src.helpers import make_request from deployer.src.fetchers import get_configs_from_website from deployer.src.helpers import send_slack_notif from deployer.src.algolia_helper import remove_crawling_issue configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/' + str(inverted[connector_name]) + '/deactivate', 'PUT') remove_crawling_issue(connector_name) send_slack_notif([{ 'title': 'Disable connectors', 'text': '- ' + connector_name }])
def run(self, args): configs, inverted, crawler_ids = get_configs_from_website() connector_name = args[0] make_request('/' + str(inverted[connector_name]) + '/reindex', 'POST') return 0