runtime
runtime copied to clipboard
Add `operations` functionality
The design dicussion around this yielded the following:
-
There are three entities involved here:
jobscronJobsoperationsjobTemplates
-
A
jobis something ran once during an acorn deployment. The acorn might say deploy a mysql container and run this job (at deploy time) to set the root password and insert some data in it. -
A
cronJob...is a job that runs on a cron instead of just once. -
An
operationis a description of extra functionality available to a deployed instance of that acorn like backup and restore. -
A
jobTemplatecan be used in the definition of any of the above. It has the core definition of what will be ran. Each of the types can augment a template with their own fields. cronJob will have acronSchedulefield. Operation will define additional parmaters that the user can specify when they invoke the operation via the cli.
Addition from @cloudnautique
Provide a way to define a job container that can run on demand(I'd like to stand up an instance to copy out a backup file for instance.).
I'm going to use this issue to encapsulate that ask. We'll need to get to the next level of definition for this