Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install crontab and start testing cron jobs #17

Open
JWizerd opened this issue Jan 27, 2019 · 2 comments
Open

Install crontab and start testing cron jobs #17

JWizerd opened this issue Jan 27, 2019 · 2 comments
Assignees

Comments

@JWizerd
Copy link
Owner

JWizerd commented Jan 27, 2019

Since we now have the ability to scrape indeed and send email notifications we should build a cron that will scrape the test scraper.html every 10 minutes or something to get that functionality tested and working.

Resource: https://stackoverflow.com/questions/37458287/how-to-run-a-cron-job-inside-a-docker-container

@JWizerd
Copy link
Owner Author

JWizerd commented Feb 3, 2019

CRONs are now running in the docker container and script execution is being logged both via the logger and a crontab log file called /var/www/html/cronErrors.txt. Right now for testing purposes, the frequency is set to every minute. I've also removed the mongo docker stuff since we don't need a network or a mongo container since we're using an external service. I've commented out the cron so it's not implicitly sending us test emails every two minutes while we're working on other stuff.

@yashraikar1087-zz
Copy link
Collaborator

Which external service are we using for mongo dude? I thought we would be using the container it self

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

No branches or pull requests

2 participants