temporalio / temporalio/sdk-java
Calling workflow method on the workflow stub should always wait for the workflow completion.
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 433
- Fork
- 249
- Merge medio
- 5g 6h
- PR unite (30g)
- 26
Descrizione
Is your feature request related to a problem? Please describe.
When a workflow is started synchronously using a typed stub it reconnects to an already running instance if WorkflowIdReusePolicy is not AllowDuplicate.
When a workflow method is called on a stub that was created using a workflowId (see newWorkflowStub(Class workflowInterface, String workflowId)) an exception is returned.
Describe the solution you'd like
When a workflow stub is created by a workflowId and the workflow method is invoked then the call should block waiting for a workflow result if a workflow with the given id is already running. The exception should be returned if no workflow with such id exists.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con WorkflowClient.newWorkflowStub(Class workflowInterface, String workflowId) e traccia come viene gestita una chiamata a un metodo su quello stub tipizzato. Verifica il comportamento per un workflow già in esecuzione e per un workflow assente: il primo dovrebbe attendere il completamento, mentre il secondo dovrebbe restituire un'eccezione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api, distributed-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100