-
Notifications
You must be signed in to change notification settings - Fork 21
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
Background job to pull jobs from removes older saved jobs #14
Comments
Hey @willywos |
Thanks @neeraj-joshi01. Let me know if you have any questions or need any clarifications. |
Hey @neeraj-joshi01 thanks for taking a look at this one. I'm unsure of this approach though. I had a couple of questions.
Thanks |
@willywos Adding columns to an existing table are pretty straightforward, But I wanted to avoid duplications while saving the same job details in multiple tables |
@neeraj-joshi01 ok well lets try it out and see how it goes. |
There is a background job that runs on a heroku scheduler that calls the rake task
rake jobby_job:process_job_sites
. This basically removes that are a month old and pulls them from the job boards. The removal of older postings is done to keep the database from getting very large.To Reproduce
Steps to reproduce the behavior:
$ rake jobby_job:process_job_sites
$ rake jobby_job:clear_job_sites
Expected behavior
My Jobs should not be removed.
Additional context
I think the best option is to change how jobs are saved. Maybe updating the saved_jobs table to store the job posting information instead of the reference to the id of the job post. This way all the data is still saved and can be queried against. Then updating the My Jobs page to pull job postings from the information saved in saved_jobs.
The text was updated successfully, but these errors were encountered: