Entity and methods
Function
Bases: ExecutableEntity
A class representing a function.
Source code in digitalhub_core/entities/function/entity.py
run(action, local_execution=False, wait=False, log_info=True, **kwargs)
Run function. This method creates a new run and executes it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action |
str
|
Action to execute. |
required |
local_execution |
bool
|
Flag to determine if object has local execution. |
False
|
wait |
bool
|
Flag to wait for execution. |
False
|
log_info |
bool
|
Flag to log information while waiting. |
True
|
**kwargs |
dict
|
Keyword arguments passed to Task and Run builders. |
{}
|
Returns:
Type | Description |
---|---|
Run
|
Run instance. |