K8SJobTask

etlflow.task.K8SJobTask
See theK8SJobTask companion object
case class K8SJobTask(name: String, jobName: String, image: String, container: Option[String], imagePullPolicy: Option[String], envs: Option[Map[String, String]], volumeMounts: Option[Map[String, String]], podRestartPolicy: Option[String], command: Option[List[String]], namespace: Option[String], apiVersion: Option[String], debug: Option[Boolean], awaitCompletion: Option[Boolean], showJobLogs: Option[Boolean], pollingFrequencyInMillis: Option[Long], deletionPolicy: Option[String], deletionGraceInSeconds: Option[Int]) extends EtlTask[K8S, V1Job]

Create a Job in a new Container for running an image.

Attributes

apiVersion

API Version, Optional, defaults to batch/v1

awaitCompletion

boolean flag which indicates whether control should await for the job's completion before returning

command

Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Optional

container

Name of the Container, Optional, Defaults to Job Name

debug

boolean flag which logs more details on some intermediary objects. Optional, defaults to false

deletionGraceInSeconds

The duration in seconds before the Job should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. Optional, defaults to 0

deletionPolicy

The deletion policy for this Job. One of:

envs

Environment Variables to set for the container. Optional

image

image descriptor

jobName

Name of the Job

name

Name of this Task

namespace

namespace, optional. Defaults to 'default'

podRestartPolicy

Restart policy for the container. One of Always, OnFailure, Never. Default to Never. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy

pollingFrequencyInMillis

Duration(in milliseconds) to poll for status of the Job. Optional, only used when awaitCompletion is true or deletionPolicy is not etlflow.k8s.DeletionPolicy.Never

showJobLogs

boolean flag which shows the logs from the submitted job.Optional, only used when awaitCompletion is true or deletionPolicy is not etlflow.k8s.DeletionPolicy.Never

volumeMounts

Volumes to Mount into the Container. Optional. Map, with the first element identifying the path to mount inside the container, and the second the volume name. Optional

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EtlTask[K8S, V1Job]
trait ApplicationLogger
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def getTaskProperties: Map[String, String]

Attributes

Definition Classes
EtlTask

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toZIO: RIO[R & Audit, OP]

Attributes

Inherited from:
EtlTask

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
ApplicationLogger
val taskType: String

Attributes

Inherited from:
EtlTask
protected val zioSlf4jLogger: ULayer[Unit]

Attributes

Inherited from:
ApplicationLogger