mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-10 10:08:46 -06:00
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:
@@ -1,4 +1,4 @@
|
||||
from hatchet import new_client
|
||||
from hatchet_sdk import new_client
|
||||
|
||||
client = new_client()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from hatchet import Hatchet, Context
|
||||
from hatchet_sdk import Hatchet, Context
|
||||
|
||||
hatchet = Hatchet()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user