temporalio / temporalio/samples-python
[Feature Request] Create sample for calling Python Client from a sync method
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 367
- Fork
- 121
- Merge medio
- 3g 20h
- PR unite (30g)
- 11
Descrizione
Is your feature request related to a problem? Please describe.
There are many Temporal users that have existing Python code bases that are only sync, and for these users learning how to invoke the Temporal Client is toil, as they may not be fully versed in asyncio and the event loop. Having a sample that provides a snippet on how to use the Temporal Client from an existing sync method would be very helpful for these folks as part of the getting started experience.
Describe the solution you'd like
I'd like a hello world style sample that creates a client and then invokes client.start_workflow or client.execute_workflow from within a synchronous method
Additional context
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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
Esamina innanzitutto gli esempi hello-world esistenti nel repository e i pattern di utilizzo di Python Client; nell’issue non sono indicati file o test specifici. Aggiungi un esempio in cui client.start_workflow o client.execute_workflow venga chiamato da un metodo sincrono, quindi verifica che l’esempio venga eseguito come parte dell’esperienza getting-started.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100