Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tenant ids #392

Closed
barziv opened this issue Mar 17, 2024 · 1 comment · Fixed by #383
Closed

Support tenant ids #392

barziv opened this issue Mar 17, 2024 · 1 comment · Fixed by #383

Comments

@barziv
Copy link

barziv commented Mar 17, 2024

Hey, I saw multiTenancy option in Zeebe and I don't see this option here, How can I use tenants with pyzeebe?

Zeebe docs - multi tenancy

This is how node-zeebe implement this -

const activateJobsRequest: ActivateJobsRequest = {
			maxJobsToActivate: amount,
			requestTimeout,
			timeout: this.timeout,
			type: this.taskType,
			worker: this.id,
			fetchVariable: this.fetchVariable as string[],
			tenantIds: this.tenantId ? [this.tenantId] : undefined
		}

		this.logger.logDebug(
			`Requesting ${amount} jobs on [${id}] with requestTimeout ${Duration.value.of(
				requestTimeout
			)}, job timeout: ${Duration.value.of(this.timeout)}`
		)
		debug(
			`Requesting ${amount} jobs on [${id}] with requestTimeout ${Duration.value.of(
				requestTimeout
			)}, job timeout: ${Duration.value.of(this.timeout)}`
		)

		try {
			stream = await this.grpcClient.activateJobsStream(
				activateJobsRequest
			)

So I thought maybe we need to add tanantIds to pyzeebe/grpc_internals/zeebe_job_adapter.py on ActivateJobsRequest line

@dimastbk
Copy link
Collaborator

#383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants