Schema: Runnable

(v1.0.0)

Runnable

kind: Runnable
metadata:
  name: target
  annotations:
    target_lib: examples/stub/lib/target.so
spec:
  tasks:
    - function: task_init
      schedule: 0
    - function: task_5ms
      schedule: 5
    - function: task_10ms
      schedule: 10
    - function: task_20ms
      schedule: 20
    - function: task_40ms
      schedule: 40

A Runnable definition.

Supported annotations:

AnnotationDescription
target_libRelative path of the shared library containing the Runnable library.

Properties

NameTypeRequiredDescription
kindstringtruenone
metadataobjectfalseInformation relating to an object.
» namestringfalseThe name of the object.
» labelsobjectfalseIdentifying information used to identify objects within the system (e.g. giving a specific ’label’ to an object).
»» additionalPropertiesstringfalsenone
» annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
»» additionalPropertiesanyfalsenone
specRunnableSpectruenone

Enumerated Values

PropertyValue
kindRunnable

RunnableSpec

tasks:
  - function: task_init
    schedule: 20

Properties

NameTypeRequiredDescription
tasks[Task]trueA list of tasks belonging to this Runnable.

Task

function: task_init
schedule: 20

A Runnable task definition.

Properties

NameTypeRequiredDescription
functionstringtrueThe name of the function representing the task. This function
will be loaded from the library referenced by the Runnable
annotation target_lib.
scheduleintegertrueThe task schedule interval (in milliseconds).

undefined