Re: Heroku Scheduler API ?

2019-04-20 Thread localhostdotdev
On Tuesday, November 3, 2015 at 6:58:05 AM UTC+1, Greg Navis wrote: > > I work on a Rails app and have 3 entry point jobs: every_day, every_hour, > every_10_minutes. There are scheduler entries that run rake every_day, rake > every_hour and rake every_10_minutes with appropriate frequencies.

Re: Heroku Scheduler API ?

2015-11-05 Thread Greg Navis
It seems the scheduler cannot be manipulated via the API at the moment. I came up with three workarounds: 1. in your web process, start a thread that will run a one-off dyno to do the background job in regular intervals (or do the processing in the thread itself) 2. start a one-off dyno while

Re: Heroku Scheduler API ?

2015-11-05 Thread Greg Navis
No problem, Regan! I'd love to learn how each of these options worked for you. On Fri, Nov 6, 2015 at 3:17 AM, Regan Starr wrote: > Thank you very much Greg. > > I will explore these options and see if any will work for my case. > > Regan > > -- > -- > You received this

Re: Heroku Scheduler API ?

2015-11-05 Thread Regan Starr
Thank you very much Greg. I will explore these options and see if any will work for my case. Regan -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more

Re: Heroku Scheduler API ?

2015-11-03 Thread Regan Starr
Thanks Greg. I can see how that would work for some situations. Unfortunately, I'm trying to do something slightly different. I create small, open-source apps. I recently discovered the Heroku Platform API. Using /app-setups

Re: Heroku Scheduler API ?

2015-11-02 Thread Greg Navis
It seems there's no API (good to know!) but I have a workaround. Maybe it'll be useful for you too. I work on a Rails app and have 3 entry point jobs: every_day, every_hour, every_10_minutes. There are scheduler entries that run rake every_day, rake every_hour and rake every_10_minutes with

Re: Heroku Scheduler API ?

2015-11-02 Thread Regan Starr
Any update on this? I would love to have an API for creating new jobs in the Scheduler. Regan Starr -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more

Re: Heroku Scheduler API ?

2012-03-09 Thread Martin Moss
How would I use this to run a PHP script? On Mar 5, 2012 3:02 AM, Mark Pundsack m...@heroku.com wrote: Sorry for the delayed response. We updated the docs to mention running Procfile entries via `heroku run`: http://devcenter.heroku.com/articles/oneoff-admin-ps Anything that works via

Re: Heroku Scheduler API ?

2012-02-22 Thread Mark Pundsack
Sorry, there's no API for scheduler. Can I ask what you want one for? On Feb 22, 2012, at 3:05 AM, Michel Pigassou wrote: Hi Is there an API for the Heroku Scheduler (https://addons.heroku.com/scheduler) or do we have to go through the web UI ? -- You received this message because you

Re: Heroku Scheduler API ?

2012-02-22 Thread kowsik
I second the the API and/or the CLI integration. We have multiple apps with various background processes. It's hard to get a global perspective of what exactly is happening in the app, since the scheduler tasks are not in the Procfile. So I would have to check the Procfile, do a heroku ps, go to

Re: Heroku Scheduler API ?

2012-02-22 Thread kowsik
Didn't know that. I thought the scheduler can only run commands, like rake tasks and what not. Assuming my Procfile has this: cleanup: bundle exec rake jobs:cleanup How exactly can the scheduler reference the cleanup process without duplicating the 'bundle exec ..' line? K. --- http://blitz.io