Skip to content

Commit

Permalink
feat: use sorting from configuration in external task client
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusM authored Sep 6, 2024
1 parent 46c33b0 commit 019eb7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions camunda/client/external_task_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class ExternalTaskClient:
"timeoutDeltaMillis": 5000,
"includeExtensionProperties": True, # enables Camunda Extension Properties
"deserializeValues": True, # deserialize values when fetch a task by default
"usePriority": False
"usePriority": False,
"sorting": None
}

def __init__(self, worker_id, engine_base_url=ENGINE_LOCAL_BASE_URL, config=None):
Expand All @@ -48,7 +49,8 @@ def fetch_and_lock(self, topic_names, process_variables=None, variables=None):
"maxTasks": self.config["maxTasks"],
"topics": self._get_topics(topic_names, process_variables, variables),
"asyncResponseTimeout": self.config["asyncResponseTimeout"],
"usePriority": self.config["usePriority"]
"usePriority": self.config["usePriority"],
"sorting": self.config["sorting"]
}

if self.is_debug:
Expand Down

0 comments on commit 019eb7f

Please sign in to comment.