File tree 7 files changed +7
-7
lines changed
7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " upstash-workflow"
3
- version = " 0.1.0 "
3
+ version = " 0.1.1 "
4
4
description = " Python SDK for Upstash Workflow"
5
5
license = " MIT"
6
6
authors = [
" Upstash <[email protected] >" ]
Original file line number Diff line number Diff line change 1
- __version__ = "0.1.0 "
1
+ __version__ = "0.1.1 "
2
2
3
3
from upstash_workflow .context .context import WorkflowContext
4
4
from upstash_workflow .serve .serve import serve
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def __init__(
58
58
self .headers : Dict [str , str ] = headers
59
59
self .request_payload : TInitialPayload = initial_payload
60
60
self .env : Dict [str , Optional [str ]] = env or {}
61
- self .retries : int = retries or DEFAULT_RETRIES
61
+ self .retries : int = DEFAULT_RETRIES if retries is None else retries
62
62
self ._executor : _AutoExecutor = _AutoExecutor (self , self ._steps )
63
63
64
64
async def run (
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def _initial_payload_parser(initial_request: str) -> TInitialPayload:
92
92
),
93
93
base_url = base_url or environment .get ("UPSTASH_WORKFLOW_URL" ),
94
94
env = environment ,
95
- retries = retries or DEFAULT_RETRIES ,
95
+ retries = DEFAULT_RETRIES if retries is None else retries ,
96
96
url = url ,
97
97
)
98
98
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def __init__(
57
57
self .headers : Dict [str , str ] = headers
58
58
self .request_payload : TInitialPayload = initial_payload
59
59
self .env : Dict [str , Optional [str ]] = env or {}
60
- self .retries : int = retries or DEFAULT_RETRIES
60
+ self .retries : int = DEFAULT_RETRIES if retries is None else retries
61
61
self ._executor : _AutoExecutor = _AutoExecutor (self , self ._steps )
62
62
63
63
def run (
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def _initial_payload_parser(initial_request: str) -> TInitialPayload:
106
106
),
107
107
base_url = base_url or environment .get ("UPSTASH_WORKFLOW_URL" ),
108
108
env = environment ,
109
- retries = retries or DEFAULT_RETRIES ,
109
+ retries = DEFAULT_RETRIES if retries is None else retries ,
110
110
url = url ,
111
111
)
112
112
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ def _get_headers(
299
299
)
300
300
301
301
content_type = user_headers .get ("Content-Type" ) if user_headers else None
302
- content_type = content_type or DEFAULT_CONTENT_TYPE
302
+ content_type = DEFAULT_CONTENT_TYPE if content_type is None else content_type
303
303
304
304
if step and step .call_headers is not None :
305
305
forwarded_headers = {
You can’t perform that action at this time.
0 commit comments