mutable_state_task_store.go ×4

Frontier kind: Code frontier

unlabeled · c_96c164e3a20d

2 tests · 4075 LOC · 178 files · introduces 0 tests · 37 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges37 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
717 ranges4075 lines · 178 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 37 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/cassandra/mutable_state_task_store.go 37 introduced LOC · 4 ranges

Open complete file

736 ) (*p.InternalGetHistoryTasksResponse, error) {
737 switch request.TaskCategory.Type() {
738 > case tasks.CategoryTypeImmediate: mutable_state_task_store.go
739 > return d.getHistoryImmedidateTasks(ctx, request)
740 case tasks.CategoryTypeScheduled:
741 return d.getHistoryScheduledTasks(ctx, request)
748 ctx context.Context,
749 request *p.GetHistoryTasksRequest,
750 > ) (*p.InternalGetHistoryTasksResponse, error) { mutable_state_task_store.go
751 > // execution manager should already validated the request
752 > // Reading history tasks need to be quorum level consistent, otherwise we could lose task
753 >
754 > query := d.Session.Query(templateGetHistoryImmediateTasksQuery,
755 > request.ShardID,
756 > request.TaskCategory.ID(),
757 > rowTypeHistoryTaskNamespaceID,
758 > rowTypeHistoryTaskWorkflowID,
759 > rowTypeHistoryTaskRunID,
760 > defaultVisibilityTimestamp,
761 > request.InclusiveMinTaskKey.TaskID,
762 > request.ExclusiveMaxTaskKey.TaskID,
763 > ).WithContext(ctx)
764 >
765 > iter := query.PageSize(request.BatchSize).PageState(request.NextPageToken).Iter()
766 >
767 > response := &p.InternalGetHistoryTasksResponse{}
768 > var taskID int64
769 > var data []byte
770 > var encoding string
771 >
772 > for iter.Scan(&taskID, &data, &encoding) {
773 > response.Tasks = append(response.Tasks, p.InternalHistoryTask{
774 > Key: tasks.NewImmediateKey(taskID),
775 > Blob: p.NewDataBlob(data, encoding),
776 > })
777 >
778 > taskID = 0
779 > data = nil
780 > encoding = ""
781 > }
782 > if len(iter.PageState()) > 0 {
783 response.NextPageToken = iter.PageState()
784 }
785
786 > if err := iter.Close(); err != nil { mutable_state_task_store.go
787 return nil, gocql.ConvertError("GetHistoryImmediateTasks", err)
788 }
789
790 > return response, nil mutable_state_task_store.go
791 }
792