更新时间:2024-03-06 GMT+08:00
分享

队列相关

约束限制

当前使用SDK创建的作业不支持在default队列上运行。

查询所有队列

DLI提供查询队列列表接口,您可以使用该接口并选择相应的队列来执行作业。示例代码如下:

1
2
3
4
5
6
7
8
9
def list_all_queues(dli_client):
    try:        
       queues = dli_client.list_queues()
    except DliException as e:
        print(e)
        return

    for queue in queues:
        print(queue.name)

完整样例代码和依赖包说明请参考:Python SDK概述

分享:

    相关文档

    相关产品