@camunda8/orchestration-cluster-api
    Preparing search index...

    Type Alias ThreadedJobHandler

    ThreadedJobHandler: (
        job: ThreadedJob,
        client: CamundaClient,
    ) => Promise<JobActionReceipt> | JobActionReceipt

    Handler function signature for threaded job workers.

    Import this type in your handler module for full intellisense on job and client:

    import type { ThreadedJobHandler } from '@camunda8/orchestration-cluster-api';

    const handler: ThreadedJobHandler = async (job, client) => {
    // full intellisense for job.variables, job.complete(), client.publishMessage(), etc.
    return job.complete({ result: 'done' });
    };
    export default handler;

    Type Declaration