0
我们在我们的开发中使用Azure服务总线,我们需要使用服务总线的schedulequeue属性。我们发现如何使用C#实现它,但是,我们如何使用Python SDK的Service Bus Queue中的属性?Python SDK中用于服务总线的预定队列属性队列
我们在我们的开发中使用Azure服务总线,我们需要使用服务总线的schedulequeue属性。我们发现如何使用C#实现它,但是,我们如何使用Python SDK的Service Bus Queue中的属性?Python SDK中用于服务总线的预定队列属性队列
看一看文档:
本节将介绍如何使用这里定义经纪人和用户属性:Message Headers and Properties
sent_msg = Message(b'This is the third message',
broker_properties={'Label': 'M3'},
custom_properties={'Priority': 'Medium',
'Customer': 'ABC'}
)
在参考林k,你可以找到代理消息的ScheduledEnqueueTimeUtc
属性,所以你可以这样设置:
sent_msg = Message(b'This is the third message',
broker_properties={'ScheduledEnqueueTimeUtc': datetime(2011, 12, 14)}
)