googleapis 的 list_tasks 是否包含 运行 任务?

Does the googleapis's list_tasks include the running tasks?

我正在使用 googleapis.dev 连接我的云任务队列。我想确保队列为空并且任务已完成。问题是,“list_tasks”函数 return 仅包含计划任务,还是还包括当前 运行 的任务?

API 建议对队列中的任务执行列表将 return 一组任务,如下所示:

{
  "tasks": [
    {
      object (Task)
    }
  ],
  "nextPageToken": string
}

示例任务对象如下:

{
  "name": string,
  "scheduleTime": string,
  "createTime": string,
  "dispatchDeadline": string,
  "dispatchCount": integer,
  "responseCount": integer,
  "firstAttempt": {
    object (Attempt)
  },
  "lastAttempt": {
    object (Attempt)
  },
  "view": enum (View),

  // Union field payload_type can be only one of the following:
  "appEngineHttpRequest": {
    object (AppEngineHttpRequest)
  },
  "httpRequest": {
    object (HttpRequest)
  },
  "pullMessage": {
    object (PullMessage)
  }
  // End of list of possible types for union field payload_type.
}

根据 docs :

If responseTime is unset, then the task has not been attempted or is currently running and the responseStatus field is meaningless.

TL;DR 是,显示 运行 个任务