JobApp
This is the entry point for a EtlFlow Job application (See below sample).
import etlflow._
import etlflow.task._
import zio._
object MyJobApp extends JobApp {
def executeTask(): Unit = logger.info(s"Hello EtlFlow Task")
val task1: GenericTask[Unit] = GenericTask(
name = "Task_1",
function = executeTask()
)
def job(args: Chunk[String]): RIO[audit.AuditEnv, Unit] = task1.execute
}
Type members
Inherited types
Value members
Concrete methods
This is the core function which runs the job with auditing (start and end).
This is the core function which runs the job with auditing (start and end).
It also converts command-line arguments passed to application into json key value pair. For e.g. if you run application with args "arg0 arg1 arg2 arg3" it will parse and convert these args to "{"0":"arg0", "1":"arg1", "2":"arg2", "3":"arg3"}"
- Value parameters:
- cliArgs
command-line arguments
This is just a wrapper around default run method available with ZIOAppDefault to call execute(Chunk[String])
This is just a wrapper around default run method available with ZIOAppDefault to call execute(Chunk[String])
- Definition Classes
- ZIOApp
Inherited methods
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.
- Inherited from:
- ZIOApp
A helper function to exit the application with the specified exit code.
A helper function to exit the application with the specified exit code.
- Inherited from:
- ZIOApp
A helper function to obtain access to the command-line arguments of the
application. You may use this helper function inside your run
function.
A helper function to obtain access to the command-line arguments of the
application. You may use this helper function inside your run
function.
- Inherited from:
- ZIOApp
Invokes the main app. Designed primarily for testing.
Invokes the main app. Designed primarily for testing.
- Inherited from:
- ZIOApp
Concrete fields
Inherited fields
Implicits
Inherited implicits
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.
- Inherited from:
- ZIOAppVersionSpecific