GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — samples-go/searchattributes at main · temporalio/samples-go

Expand file tree

/

searchattributes

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

searchattributes

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
starter
starter
 
 
worker
worker
 
 
README.md
README.md
 
 
searchattributes_workflow.go
searchattributes_workflow.go
 
 
searchattributes_workflow_test.go
searchattributes_workflow_test.go
 
 

README.md

Steps to run this sample:

  1. Run a Temporal dev server[Temporal Server](Run a Temporal service.
temporal server start-dev \
  --search-attribute CustomIntField=Int \
  --search-attribute CustomKeywordField=Keyword \
  --search-attribute CustomBoolField=Bool \
  --search-attribute CustomDoubleField=Double \
  --search-attribute CustomDatetimeField=Datetime \
  --search-attribute CustomKeywordListField=KeywordList
  1. Run the following command to start the worker:
go run searchattributes/worker/main.go
  1. Run the following command to start the example:
go run searchattributes/starter/main.go
  1. Observe search attributes in the worker log:
...
2025/09/05 11:44:22 INFO  WorkflowID must be the same Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 info.WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf lastExecution.WorkflowId search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf
2025/09/05 11:44:22 INFO  RunID must be the same Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 info.RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d lastExecution.RunId 01991b31-9fd1-7854-813d-0b49a53b5b1d
2025/09/05 11:44:22 INFO  Current search attribute value Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 CustomDatetimeField 2025-09-05 18:44:21.075067 +0000 UTC
2025/09/05 11:44:22 INFO  Current search attribute value Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 CustomKeywordListField [value1 value2]
2025/09/05 11:44:22 INFO  Current search attribute value Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 CustomKeywordField Keyword fields supports prefix search
2025/09/05 11:44:22 INFO  Current search attribute value Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 CustomBoolField true
2025/09/05 11:44:22 INFO  Current search attribute value Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1 CustomIntField 2
2025/09/05 11:44:22 INFO  Workflow completed. Namespace default TaskQueue search-attributes WorkerID 63326@local@ WorkflowType SearchAttributesWorkflow WorkflowID search_attributes_02243e18-58c0-4f7d-a893-49f4d30e8ccf RunID 01991b31-9fd1-7854-813d-0b49a53b5b1d Attempt 1
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.