
# 队列相关
#### 约束限制
当前使用SDK创建的作业不支持在default队列上运行。
 #### 查询所有队列
DLI提供查询队列列表接口，您可以使用该接口并选择相应的队列来执行作业。示例代码如下：
```
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概述](https://support.huaweicloud.com/sdkreference-dli/dli_04_0124.html)。
