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 processing a request - record the time when
the processing was run and if it's longer than 24 hours then run the
processing again (by starting a one-off dyno)
3. define a non-web process type that will do the processing in the
background (this will cost more though)

I absolutely realise that these are hacky, ugly workarounds. Do you think
you can apply one of them to your case? Maybe there are some other
workarounds.

Best regards

On Tue, Nov 3, 2015 at 2:10 PM, Regan Starr <[email protected]> wrote:

> 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
> <https://devcenter.heroku.com/articles/setting-up-apps-using-the-heroku-platform-api>,
> I'm able to let people deploy my apps on their own Heroku account with just
> a few clicks.
>
> Many of my apps require a "run this PHP script once a day" type of job.
> I'm trying to eliminate as much configuration for my users as possible.
>
> I know I can include add-ons during the /app-setup process, but I need to
> take it a step further and schedule a job on behalf of my users.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to