One-off or manually triggered jobs
complete
o
oliver
It would be great to have jobs without schedules that can be triggered manually. For example:
* Long lived data processing jobs that only need to run once.
* DB migration jobs
It should also be possible to specify a plan that's different from the service context for the job.
Log In
J
Jared Moody
Emile I think this release phase request request is what you're describing: https://feedback.render.com/features/p/release-phase-script
E
Emile
I don't understand how the current job can help with migrations considering that the service must be built (thus deployment) before they can execute. Ideally we need a way to run stuff before the service is deployed.
o
oliver
Hari Demirev are we able to launch jobs as part of a blueprint? A common pattern for us would be to run a migration before the service starts for each PR preview
H
Hari Demirev
complete
Render Jobs are now generally available, learn more in our docs: https://render.com/docs/jobs
d
deminetix
Hari Demirev: Looks like the docs don’t link to this page yet.
H
Hari Demirev
Merged in a post:
Programmatically run a cron job
K
Kurt Kemple
I have a cron that generates a report daily. There are times however when I would like to be able to generate it on the fly via Slack command or something like that. It would be nice to have something like deploy hooks to run the job via API.
A
Andy Chong
It will be amazing to be able to spin a one-off instances when running things in rake task, or rails console, like Heroku. Besides, I think this will also solve the problem where existing instances get out of memory during deployment, if Render spin new instances for building and release.
Anurag Goel
Andy Chong: we plan to add a CLI so you can run these tasks in one-off commands. Until then, would you want to use the API instead?
A
Andy Chong
Anurag Goel: I think I'm good with using the shell for now. But will the task get run on a separate one-off instance, or the existing instance? I frequently get into the out of memory problem, because I run the service on a 85 - 90% memory utilisation.
Anurag Goel
Andy Chong: it runs on a different instance. You can override the job's plan when you invoke the API.
H
Hari Demirev
If you're interested in participating in the early access phase of our jobs functionality, which will be available via our public REST API, please contact support@render.com to have the functionality enabled for your account.
H
Hari Demirev
Merged in a post:
Manually run command in a service without the shell
d
danielle
It's possible to run one-off commands in services using the shell, but it would also be useful to have an ability to run one-off jobs in the context of a service, maybe even on a different plan. Especially if it can be billed by the second based on the running time.
H
Hari Demirev
in progress
j
jonathan
"It's possible to run one-off commands in services using the shell,"
I don't even understand how to do that!
Load More
→