dlang-bot icon indicating copy to clipboard operation
dlang-bot copied to clipboard

Allow cronjobs to be executed by calling the built binary

Open wilzbach opened this issue 8 years ago • 4 comments
trafficstars

  • add a main method
  • add a CLI flag to call the cron job --run
  • configure the heroku addon https://devcenter.heroku.com/articles/scheduler

wilzbach avatar Mar 30 '17 16:03 wilzbach

That's a weird cron, but workable. How often do we get migrated on Heroku? You could always run on full hours if you happen to be on at that time. Also an anacron approach would work but requires some state.

MartinNowak avatar Jan 15 '18 16:01 MartinNowak

Currently the cron runs every six hours:

image

wilzbach avatar Jan 15 '18 22:01 wilzbach

So as discussed on Slack, this seems to have fallen off at some point.

I got it working again, though, it seems to take a very long time to run. Even with Vibe.d connection persistence fixed, it's been running for three hours and hasn't even finished going through the DMD pull requests. This may need some adjustments going forward.

CyberShadow avatar May 26 '21 23:05 CyberShadow

I got it working again, though, it seems to take a very long time to run.

Figured it out, it was getting stuck in an infinite loop because it wasn't parsing the "Link" header properly: https://github.com/CyberShadow/dlang-bot/commit/01ebb4191c82cf4295729df0b04ed5341bf2a227

CyberShadow avatar May 27 '21 02:05 CyberShadow