luna_lambda_tools.public.tasks.BaseLambdaTask

class luna_lambda_tools.public.tasks.BaseLambdaTask(*args, **kwargs)[source]

Lambda task

__init__(*args, **kwargs)[source]

Methods

__init__(*args, **kwargs)

createErrors(taskId, subTaskId, taskType, ...)

createSubTaskError(subTaskError)

Create sub task error

exceptionHandler(asyncRunner_, context)

Handle exceptions.

execute(taskData)

Execute current sub task processing

executeSubtask(subTaskContent)

Execute current sub task processing

flushExecutionMonitoringData(taskData[, ...])

Flush a data about an execution subtask to the monitoring.

getKwargsFromTaskData(taskData)

Get kwargs from task data

initFromConfig(influxMonitoring, ...)

Init from config.

onShutDown()

Perform shutdown actions

saveResultToImageStore(result, taskData[, ...])

Save a task result to image store

sendToMonitoring(points)

Send point to monitoring

separationStart([lambdaId])

Start separation processing

splitTask2SubTasks(taskContentRequest)

Split task content to sub task contents

splitTasksContent(content)

Split task content to sub task contents

start([lambdaId])

Start task processing

Attributes

bodySampleStoreEnabled

Whether body sample store is enabled

clients

eventsEnabled

Whether luna-event is enabled

faceSampleStoreEnabled

Whether face sample store is enabled

handlersEnabled

Whether handlers is enabled

imageOriginStoreEnabled

Whether image origin store is enabled

lvaEnabled

Whether Luna-Video-Agent is enabled

senderEnabled

Whether sender is enabled

taskType

Task type

accountId

app