Skip to content

Slack notification after 30min of scraping#60

Open
andela-ookoro wants to merge 1 commit into
CodeForAfrica-SCRAPERS:developfrom
andela-ookoro:slackNotification
Open

Slack notification after 30min of scraping#60
andela-ookoro wants to merge 1 commit into
CodeForAfrica-SCRAPERS:developfrom
andela-ookoro:slackNotification

Conversation

@andela-ookoro

Copy link
Copy Markdown
Contributor

Description

These changes add an enhancement to the project, it sends notifications to a targeted slack webhook when scraping takes longer than 30 minutes.
Two notifications would be sent, the first notification tells us that a scraper is running for more than 30 minutes, then another when the scarping has finished (this would help us know the total time scraping took).
I replaced the package python-memcached==1.58 with python3-memcached== 1.51 since the former did not work on python3 ( worked on local but failed on morph.io). Here is a link to this changes on morph

Fixes # (issue)
#44

Type of change

Enhancement

Screenshots

Notification that a scraper is running for more 30 minutes

scrapingrunning

Notification that a scraper ran for more 30 minutes

scraperfinished

@DavidLemayian

Copy link
Copy Markdown
Contributor

Thanks @andela-ookoro. Let's use this in the requirements https://github.com/CodeForAfricaLabs/python-slack-logger

@andela-ookoro

Copy link
Copy Markdown
Contributor Author

Welcome @DavidLemayian, I have replaced the existing slack handler package with slack-logger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants