Skip to content

Add Multi Tenant support to JobWorker #679

Answered by Thilo1
Thilo1 asked this question in Q&A
Discussion options

You must be logged in to vote

Add In public interface IJobWorkerBuilderStep3
/// <summary> /// Specifies tenantIds used by this job worker. /// </summary> /// /// <para> /// tenantIds /// </para> /// /// <para>Note: tenantIds.</para> /// <param name="tenantIds">handler thread count, needs to be larger then zero</param> /// <returns>the builder for this worker</returns> IJobWorkerBuilderStep3 TenantIds(List<string> tenantIds);

Add in class JobWorkerBuilder
public IJobWorkerBuilderStep3 TenantIds(List<string> tenenatIds) { Request.TenantIds.AddRange(tenenatIds); return this; }

Usage:
JobWorker worker = (JobWorker) zeebeClient.NewWorker() .JobType(processInstance.JobType) .Handler(JobHandler) .MaxJobsActive(3) .PollInt…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Thilo1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant