Cli: options for scheduler add-on?

Created on 5 Jan 2018  路  19Comments  路  Source: heroku/cli

Is there any way to specify the job to schedule with the scheduler add-on, ie. heroku addons: create scheduler --command "npm run job"? I'm ultimately trying to define it in app.json so it will run from the deploy to heroku button, and if there's a CLI param I can specify it via the options object in app.json addons.

Most helpful comment

This is needed functionality

All 19 comments

We don't have any CLI support for scheduler aside from adding it sadly. Please submit a support ticket about this as the changes needed are actually mostly server-side to support this.

Hm, I did, and they suggested I open an issue here. Is wherever it needs to be open source? I'd be happy to work on a PR, especially since you folks have done most of the work already, just need to tie them together with this param.

I'd love to see it too but there isn't an API for us to use. Can you give me a ticket number?

Thanks, I'll pass this off to the team that handles scheduler

Awesome. Let me know if there's anything I can do to help/ contribute. Feel free to close this issue if that makes sense.

Hey, I don't suppose you've had any luck with the scheduler team, have you?

I haven't. Best bet would be submit a new support ticket. There isn't an API for me to access so there isn't anything I can do here. I'm going to close this as there isn't any action I can take. If we do get an API at some point it's worth reopening.

@jdxcode I opened ticket #541981 and was advised to suggest it here. Should I open an additional ticket?

@jdxcode Just to illustrate a concrete use case in case you need one, I wanted to add a "Deploy to Heroku" button to Fixer, a fairly popular side project of mine, and this issue essentially blocked.

Please submit new support tickets. I actually really want to see this happen myself and if you ask for it in support tickets it's much more likely to happen. Posting on here isn't going to do any good though as I'm the only one that is going to read this and I have no sway in what that team gets to build. If for any reason a support engineer points you this direction鈥攖hey're misinformed and this is a platform feature request, not missing CLI functionality. (at least, not until an API is built).

I'm really sorry about all the messy redirection here!

Oh and when you file the ticket, make sure you put a link to this ticket.

Okay thanks, I've posted it - ticket number 584045.

This is needed functionality

Have there been any updates on this? I see the issue is closed and the ticket links don't work for me.

+1 what is the status?

Updates plz!

Hi everybody!

I created an Heroku add-on which enables you to create and manage Heroku Scheduler jobs using the Heroku CLI:

https://schedulerctl.com

Examples:
$ heroku jobs --app example
$ heroku jobs:add -a example --command "sleep 60" --frequency "*/10 * * * *" --dynoSize Standard-1X
$ heroku jobs:update 123456789 -a example -c "sleep 60" -f "0 0 * * *" -d Standard-2X
$ heroku jobs:remove 123456789 --app example

The add-on is currently in Alpha. Leave your Heroku email at the link above and I will send you an invite!

Following up on this request. Was the ticket ever get a response? The link is dead.

Chap responded on 10 May 2018:

Thanks for getting in touch with your feedback. Your feedback has been forwarded to our product managers. They will be in touch with you if they need clarification or more information about your request.

馃槥

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ValentinTrinque picture ValentinTrinque  路  3Comments

pushcx picture pushcx  路  7Comments

zeke picture zeke  路  7Comments

edmorley picture edmorley  路  3Comments

thegmann picture thegmann  路  3Comments