Skip to content

Commit

Permalink
Fix args to count-tasks methods
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Oct 12, 2022
1 parent 38cb342 commit ae48a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/swf_typed/_decisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ def get_number_of_pending_decision_tasks(

client = _common.ensure_client(client)
response = client.count_pending_decision_tasks(
domain=domain,
task_list=dict(name=task_list),
domain=domain, taskList=dict(name=task_list)
)
if response["truncated"]:
warnings.warn("Actual task count greater than returned amount")
Expand Down
3 changes: 1 addition & 2 deletions src/swf_typed/_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ def get_number_of_pending_tasks(

client = _common.ensure_client(client)
response = client.count_pending_activity_tasks(
domain=domain,
task_list=dict(name=task_list),
domain=domain, taskList=dict(name=task_list)
)
if response["truncated"]:
warnings.warn("Actual task count greater than returned amount")
Expand Down

0 comments on commit ae48a9b

Please sign in to comment.