Comments (1)
Hi @cludden, this solution #39 not some correctly, because activity task_queue not overriding when not using activity options (third args) and options gets from ctx.
sample case:
- default in workflow context included workflow task_queue and activity not overided queue because task_queue alreade defined (options allready included in context and/or use default activity options from deifined in proto)
func TestActivityTaskQueue2(t *testing.T) {
require := require.New(t)
var suite testsuite.WorkflowTestSuite
env := suite.NewTestWorkflowEnvironment()
simplepb.RegisterSimpleActivities(env, &testActivitiesTQ{})
env.ExecuteWorkflow(func(ctx workflow.Context) error {
_, err := simplepb.SomeActivity3(ctx , &simplepb.SomeActivity3Request{
RequestVal: "foo",
})
require.NoError(err)
return nil
})
require.True(env.IsWorkflowCompleted())
require.NoError(env.GetWorkflowError())
}
expecting activity run in specific queue (writen in proto) not workflow queue
so need forced overide task_queue if this define in proto:
- if opts.opts.TaskQueue == "" {
opts.opts.TaskQueue = "some-other-task-queue"
- }
from protoc-gen-go-temporal.
Related Issues (20)
- Some features & breaking changes HOT 3
- v1 roadmap HOT 1
- support workflow update
- make StartWorkflowOptions, ActivityOptions, LocalActivityOptions, ChildWorkflowOptions optional
- move default options to top-level method options
- restrict rpc method combinations
- support default search attributes
- support cli generation
- support TestClient compatible with testsuite
- support doc generation
- refactor method options as functional to support future extension
- support multiple proto services in a single package
- support multiple flavors of activity executors to avoid having to pass nil function
- Buf remote plugin HOT 3
- UpdateOptions.Validate clashes with Validate() method generated by protoc-gen-validate HOT 2
- Generating standalone activities without workflows HOT 4
- question/improve: add helper functions for changing options HOT 7
- Add WithDataConverter helper to relevant options
- Wrap expression evaluation in local activity in workflow contexts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protoc-gen-go-temporal.