fix: python sdk graceful shutdown and retry errors (#118)

* fix: python sdk graceful shutdown and retry errors

* chore: address changes from review
This commit is contained in:
abelanger5
2024-01-22 16:52:02 -08:00
committed by GitHub
parent cb4072efae
commit cfa4b5c8f4
13 changed files with 169 additions and 60 deletions

View File

@@ -1,4 +1,4 @@
from hatchet import new_client
from hatchet_sdk import new_client
client = new_client()

View File

@@ -1,4 +1,4 @@
from hatchet import Hatchet, Context
from hatchet_sdk import Hatchet, Context
hatchet = Hatchet()

View File

@@ -1,4 +1,7 @@
from hatchet import new_client
from hatchet_sdk import new_client
from dotenv import load_dotenv
load_dotenv()
client = new_client()

View File

@@ -1,6 +1,9 @@
from hatchet import Hatchet
from hatchet_sdk import Hatchet
from dotenv import load_dotenv
hatchet = Hatchet()
load_dotenv()
hatchet = Hatchet(debug=True)
@hatchet.workflow(on_events=["user:create"])
class MyWorkflow: