SynBioDex / SBOLExplorer

MIT License
4 stars 2 forks source link

Add to SynBioHub admin the ability to set the update interval #6

Closed cjmyers closed 4 years ago

cjmyers commented 6 years ago

This should update the cron job that runs the clustering, page rank, and index

cjmyers commented 4 years ago

We need to also determine if there is a cron job and where is it.

yu-eric commented 4 years ago

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

cjmyers commented 4 years ago

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.

cjmyers commented 4 years ago

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.

yu-eric commented 4 years ago

Added in #70 .