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

Fill in fields in ListSchedulesResponse #2946

Merged
merged 10 commits into from
Jun 6, 2022
Merged

Conversation

dnr
Copy link
Member

@dnr dnr commented Jun 3, 2022

What changed?
Use search attributes to pass a subset of current schedule state through to visibility. This uses a proto message encoded as json in a keyword search attribute, which is the best option for now.

Add a length limit on the notes field, enforced at the frontend.

Why?
So that we can see some details when listing schedules, without doing n describe calls.

How did you test it?
tested manually for now, will be part of future integration tests

Potential risks
If the search attribute value is too large (determined by dynamic config, default 2048 bytes), the server unceremoniously kills the workflow. So we should try to keep it under that limit. We can do that by encoding it as a payload (which double-jsons the json string) and measuring that. If it's too big, we can drop some (or all) fields to attempt to stay under the limit.

@dnr dnr requested a review from a team as a code owner June 3, 2022 20:12
service/frontend/workflowHandler.go Outdated Show resolved Hide resolved
service/worker/scheduler/workflow.go Outdated Show resolved Hide resolved
@dnr dnr merged commit 14556dd into temporalio:master Jun 6, 2022
@dnr dnr deleted the schedpr15 branch June 6, 2022 23:19
Sushisource pushed a commit to Sushisource/temporal that referenced this pull request Jun 7, 2022
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 this pull request may close these issues.

None yet

3 participants