Open dhiaayachi opened 2 months ago
Starting a workflow immediately after registering a search attribute should succeed.
Starting a workflow immediately after registering a search attribute fails with:
INVALID_ARGUMENT: Namespace default has no mapping defined for search attribute foo
Debug Server with SQLite
temporal operator namespace create default
TypeScript snippet:
await connection.operatorService.addSearchAttributes({ namespace: 'default', searchAttributes: { foo: temporal.api.enums.v1.IndexedValueType.INDEXED_VALUE_TYPE_KEYWORD }, }); const client = new Client({ connection }); const result = await client.workflow.execute(workflowType, { workflowId, taskQueue: 'test', args, searchAttributes: { foo: ['bar'] }, });
Expected Behavior
Starting a workflow immediately after registering a search attribute should succeed.
Actual Behavior
Starting a workflow immediately after registering a search attribute fails with:
Steps to Reproduce the Problem
Debug Server with SQLite
VS Code launch config.temporal operator namespace create default
TypeScript snippet:
Specifications