Scheduled Applications

As our team starts to deploy more apps on Domino, we've noticed that the cost and usage is going up quickly. While we're doing what we can to effectively pack apps on nodes, we have noted that the majority of our apps are just used during business hours, yet they run all the time.
It would be great to have the ability to schedule apps to turn on and off, so that internal applications with business usage are only on during business hours. This would allow us to cut our app expense by over 50%.
Comments
-
Have you seen this post on publishing and unpublishing via scheduled jobs? It relies on creating a job that can start and stop apps our internal APIs. Would this work for you?
https://community.dominodatalab.com/discussion/comment/91#Comment_91
Katie
Katie
Field Data Scientist @ Domino
0 -
Thanks Katie. I hadn't seen this article. Can you share the link? It seems like it embedded into this post, but can't find where it was originally published. We had discussed on the team that it would probably be possible to do something like this, so it's great to see it already have a method to do so.
That said...my Feature request doesn't change :). It would be ideal to have this functionality built into the 'Settings' of the 'Publish App' module.
0 -
Here's the link (I've added it above the embedding as well), and it has some screenshots that should be helpful:
https://community.dominodatalab.com/discussion/comment/91#Comment_91
This is the key code snippet that you can turn into a scheduled job that publishes or unpublishes:
from domino import Domino import os import sys action = sys.argv[1] domino = Domino(os.environ['DOMINO_PROJECT_OWNER'] + "/" + os.environ['DOMINO_PROJECT_NAME'], api_key=os.environ['DOMINO_USER_API_KEY'], host=os.environ['DOMINO_API_HOST']) if action == "on": domino.app_publish() elif action == "off": domino.app_unpublish() else: raise ValueError('This script uses the format: app.py [on]/[off]')
Makes sense that you would like this as a built-in option in the app publishing flow -- we'll provide that feedback to our product team.
Let us know if there are any further questions or anything else we can help with on this topic, in the meantime.
Katie
Field Data Scientist @ Domino
0
Howdy, Stranger!