You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
job handler is a function that executes one job, it can complete the job or fail the job, it can also set variables of the job or update the retries, throw errors
worker is a component that manages a pool of job handler instances, activates jobs on Zeebe side, and assigns those jobs to job handler instances, and makes sure to get a steady flow of jobs
Job Handler
Has an interface like this (pseudo code):
##Job Handler
handle(client: JobClient, job: ActivatedJob): Result<_, Error> // error will be picked up by worker which then fails the job
Feel free to break down into smaller issues, as this s a big task.
ActivatedRecord
Terminology
Job Handler
Has an interface like this (pseudo code):
Job Client
ActivatedJob
Wrapper around proto message
ActivatedJob
with some convenience methods for variable handlingFull featured: https://github.com/camunda/zeebe/blob/main/clients/java/src/main/java/io/camunda/zeebe/client/api/response/ActivatedJob.java
(Basically, just lots of more metadata about the job)
Worker
Lifecycle of a worker:
optional registration options:
See JavaDoc here: https://github.com/camunda/zeebe/blob/main/clients/java/src/main/java/io/camunda/zeebe/client/api/worker/JobWorkerBuilderStep1.java
Inner workings of a worker:
The text was updated successfully, but these errors were encountered: