temporalio / temporalio/samples-python

[Feature Request] Create sample for calling Python Client from a sync method

Offen
#231 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
Python
Sterne
367
Forks
121
Ø Merge
3 T. 20 Std.
Gemergte PRs (30 T.)
11

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Prüfe zuerst die vorhandenen hello-world-Beispiele des Repositorys und die Verwendungsmuster des Python Client; im Issue ist keine bestimmte Datei oder kein bestimmter Test genannt. Füge ein Beispiel hinzu, in dem client.start_workflow oder client.execute_workflow aus einer synchronen Methode aufgerufen wird, und verifiziere anschließend, dass das Beispiel als Teil der getting-started-Erfahrung ausgeführt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.