Skip to content

Hello

Greets the name carried in the triggering CloudEvent's data. The smallest Python worker in the repo, and the reference for a Python worker's layout and packaging.

Property Value
Package virtufin-worker-hello (wheel, org PyPI feed)
Engine (MIME) application/x-python (a child python3 process)
Base class WorkerBase from virtufin-worker-devkit
Command topic wrk.hello.command.<worker_id>
Responses com.virtufin.hello.response on wrk.hello.response (or the caller's replytopic)
Errors com.virtufin.hello.error on wrk.hello.error

Behavior

data {"name": "foo"}   ->  message "Hello foo"
data empty or missing  ->  message "Hello"

The data may be a JSON object, a JSON string or absent. Anything that is not a JSON object with a name (including {}, "" or invalid JSON) gives the plain "Hello".

The response data is {"command": "greet", "success": true, "message": "<greeting>"}, with source urn:com.virtufin:worker:hello; correlationid is copied from the trigger.

Build and deploy: Build and deploy Hello.

Source and changelog: Hello/.