[Bug] batch reset on completed workflows sometimes results in terminated workflows
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Empieza reproduciendo el problema con el workflow de Python y el comando temporal workflow reset --type FirstWorkflowTask --reason 'testing' --query "WorkflowType STARTS_WITH ''". Inspecciona el comportamiento del restablecimiento cuando se procesan workflows completados y verifica que el restablecedor del historial no deje ningún workflow en un estado terminado.】【。
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When performing a batch reset on completed workflows, sometimes they end up in terminated state.
I have not properly investigated yet, but it felt incorrect. It may not be specific to CLI, but I want to have a ticket open for it.
Minimal Reproduction
Create a workflow with
Python workflow
import asyncio
from datetime import timedelta
from temporalio import activity, workflow
from dan.utils.client import start_workflow
@activity.defn
async def my_activity(name: str) -> str:
return f"Hello, {name}!"
activities = [my_activity]
@workflow.defn
class Workflow:
def __init__(self):
self.received_signal = False
self.received_update = False
@workflow.run
async def run(self) -> str:
await workflow.wait_condition(
lambda: self.received_signal and self.received_update
)
return "workflow-result"
@workflow.signal
def my_signal(self) -> None:
self.received_signal = True
@workflow.update
async def my_update(self) -> None:
await workflow.execute_activity(
my_activity, "update", start_to_close_timeout=timedelta(seconds=10)
)
self.received_update = True
async def main():
wf_handle = await start_workflow(Workflow.run)
print("workflow handle:", wf_handle)
await wf_handle.signal(Workflow.my_signal)
await wf_handle.execute_update(Workflow.my_update)
print("workflow result:", await wf_handle.result())
if __name__ == "__main__":
asyncio.run(main())
Then issue this command (it can be repeated; the number of workflows grows exponentially in doing so)
temporal workflow reset --type FirstWorkflowTask --reason 'testing' --query "WorkflowType STARTS_WITH ''"
Sooner or later, one of the workflows will be in terminated state, with the UI saying terminated by "history resetter".
- Lenguaje dominante
- Go
- Estrellas
- 390
- Forks
- 123
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temporalio/cli
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
temporalio/cli#776 ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Option to disable metrics in server start-devPosiblemente ocupada @shafiktanbir la tomó hace 11 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
temporalio/cli#1274 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
temporalio/cli#1249 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Decode workflow histories concurrently with remote codec serversPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 65/100
temporalio/cli#1193 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
temporalio/cli#1178 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de temporalio/cli
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
peasant-labs/peasant#1307 ·
Los mantenedores suelen responder en 1 día
-
Reformat test names for single-protocol tests to start with Protocol/, i.e. gRPC/ or Websocket/Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
connectrpc/conformance#1211 ·
Los mantenedores suelen responder en 1 día
-
bug effort:s impact:med raised-by:desk risk:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
medici-finance/assay#8342 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
hardening
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
inference-sim/inference-sim#2821 ·
Los mantenedores suelen responder en 1 día