How would I use this to run a PHP script? On Mar 5, 2012 3:02 AM, "Mark Pundsack" <[email protected]> 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 `heroku run` works via Heroku Scheduler. Just put > the name of the process type as the 'task" in Scheduler. No special syntax > required. And you can even pass it arguments. > > On Feb 22, 2012, at 5:51 PM, kowsik wrote: > > 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 > @k0ws1k > > On Wed, Feb 22, 2012 at 8:04 AM, Mark Pundsack <[email protected]> wrote: > > Thanks for the feedback. > > > In case this wasn't obvious, Scheduler can certainly reference elements in > the Procfile. If you've got a "cleanup" entry defined, for example, you can > just set up Scheduler to run "cleanup" every hour, or whatever. > > > On Feb 22, 2012, at 7:58 AM, kowsik wrote: > > > 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 the > > scheduler's dashboard and see what's scheduled for when to really > > understand the app. This is especially important when we add new > > members to the team. > > > Maybe the scheduler should reference a named element in the Procfile? > > > K. > > --- > > http://blitz.io > > @k0ws1k > > > On Wed, Feb 22, 2012 at 7:13 AM, Mark Pundsack <[email protected]> wrote: > > 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 are subscribed to the Google Groups > > "Heroku" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/heroku/-/9OFedCoHRF4J. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/heroku?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/heroku?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
