@@ -75,6 +75,7 @@ def create(
7575 :param trigger_at: The datetime when the run should be triggered.
7676 :param input: The input data for the scheduled workflow.
7777 :param additional_metadata: Additional metadata associated with the future run as a key-value pair.
78+ :param priority: The priority of the scheduled workflow run. Must be between 1 and 3, inclusive.
7879
7980 :return: The created scheduled workflow instance.
8081 """
@@ -86,7 +87,7 @@ def create(
8687 triggerAt = trigger_at ,
8788 input = input ,
8889 additionalMetadata = additional_metadata ,
89- priority = priority
90+ priority = priority ,
9091 ),
9192 )
9293
@@ -96,6 +97,7 @@ async def aio_create(
9697 trigger_at : datetime .datetime ,
9798 input : JSONSerializableMapping ,
9899 additional_metadata : JSONSerializableMapping ,
100+ priority : int | None = None ,
99101 ) -> ScheduledWorkflows :
100102 """
101103 Creates a new scheduled workflow run.
@@ -106,16 +108,13 @@ async def aio_create(
106108 :param trigger_at: The datetime when the run should be triggered.
107109 :param input: The input data for the scheduled workflow.
108110 :param additional_metadata: Additional metadata associated with the future run as a key-value pair.
111+ :param priority: The priority of the scheduled workflow run. Must be between 1 and 3, inclusive.
109112
110113 :return: The created scheduled workflow instance.
111114 """
112115
113116 return await asyncio .to_thread (
114- self .create ,
115- workflow_name ,
116- trigger_at ,
117- input ,
118- additional_metadata ,
117+ self .create , workflow_name , trigger_at , input , additional_metadata , priority
119118 )
120119
121120 def delete (self , scheduled_id : str ) -> None :
0 commit comments