Closed cjmyers closed 4 years ago
We need to also determine if there is a cron job and where is it.
I found an alternative to using a local cron file here: https://www.npmjs.com/package/cron. What we could do instead is save a string var to SynBioHub's config file specifying the date formate to execute a cronjob (in the format of *), and pass that into a function that uses cron and runs the update index accordingly. @cjmyers
This sounds good to me.
On Dec 18, 2019, at 8:18 PM, Eric notifications@github.com wrote:
I found an alternative to using a local cron file here: https://www.npmjs.com/package/cron https://www.npmjs.com/package/cron. What we could do instead is save a string var to SynBioHub's config file specifying the date formate to execute a cronjob (in the format of *), and pass that into a function that uses cron and runs the update index accordingly. @cjmyers https://github.com/cjmyers — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SynBioDex/SBOLExplorer/issues/6?email_source=notifications&email_token=AA2YH54D4QQLX6DP4WBF6Q3QZLR2FA5CNFSM4FX474ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHIIHDI#issuecomment-567313293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2YH5Y3J466WJVJN464CY3QZLR2FANCNFSM4FX474ZA.
Configuration file should include whether cron job is enabled and the timing of the job. Default could be on with 24 hour update. SBH should be able to change this configuration and start/stop cron job with new timing interval.
Added in #70 .
This should update the cron job that runs the clustering, page rank, and index