@@ -307,10 +307,10 @@ def query_items_change_feed(
307
307
self ,
308
308
partition_key_range_id : Optional [str ] = None ,
309
309
is_start_from_beginning : bool = False ,
310
- start_time : Optional [datetime ] = None ,
311
310
continuation : Optional [str ] = None ,
312
311
max_item_count : Optional [int ] = None ,
313
312
* ,
313
+ start_time : Optional [datetime ] = None ,
314
314
partition_key : Optional [PartitionKeyType ] = None ,
315
315
priority : Optional [Literal ["High" , "Low" ]] = None ,
316
316
** kwargs : Any
@@ -321,11 +321,11 @@ def query_items_change_feed(
321
321
This is used to process the change feed in parallel across multiple consumers.
322
322
:param bool is_start_from_beginning: Get whether change feed should start from
323
323
beginning (true) or from current (false). By default, it's start from current (false).
324
- :param datetime start_time: Specifies a point of time to start change feed. Start time in
325
- '%a, %d %b %Y %H:%M:%S GMT' format. Converts datetime to UTC regardless of timezone.
326
324
:param max_item_count: Max number of items to be returned in the enumeration operation.
327
325
:param str continuation: e_tag value to be used as continuation for reading change feed.
328
326
:param int max_item_count: Max number of items to be returned in the enumeration operation.
327
+ :keyword ~datetime.datetime start_time: Specifies a point of time to start change feed. Provided value will be
328
+ converted to UTC. This value will be ignored if `is_start_from_beginning` is set to true.
329
329
:keyword partition_key: partition key at which ChangeFeed requests are targeted.
330
330
:paramtype partition_key: Union[str, int, float, bool, List[Union[str, int, float, bool]]]
331
331
:keyword Callable response_hook: A callable invoked with the response metadata.
@@ -345,7 +345,7 @@ def query_items_change_feed(
345
345
feed_options ["partitionKey" ] = self ._set_partition_key (partition_key )
346
346
if is_start_from_beginning is not None :
347
347
feed_options ["isStartFromBeginning" ] = is_start_from_beginning
348
- if start_time is not None and is_start_from_beginning is False and isinstance ( start_time , datetime ) :
348
+ if start_time is not None and is_start_from_beginning is False :
349
349
feed_options ["startTime" ] = start_time .astimezone (timezone .utc ).strftime ('%a, %d %b %Y %H:%M:%S GMT' )
350
350
if max_item_count is not None :
351
351
feed_options ["maxItemCount" ] = max_item_count
0 commit comments