GoalScheduler implementation that schedules SDM goals inside k8s jobs.
It reuses the podSpec of the deployed SDM to create a new jobSpec from.
Subclasses may change the spec and job creation behavior by overwriting beforeCreation
and/or afterCreation methods.
Extension point for sub classes to modify k8s resources after the job has been created.
The provided jobSpec contains the result of the job creation API call.
Extension point for sub classes to modify k8s resources or provided jobSpec before the
Job gets created in k8s.
Note: A potentially existing job with the same name has already been deleted at this point.
Parameters
gi: GoalInvocation
jobSpec: V1Job
Returns Promise<void>
Protected cleanUp
cleanUp(): Promise<void>
Extension point to allow for custom clean up logic.
GoalScheduler implementation that schedules SDM goals inside k8s jobs.
It reuses the podSpec of the deployed SDM to create a new jobSpec from. Subclasses may change the spec and job creation behavior by overwriting beforeCreation and/or afterCreation methods.