te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>Azure self hosted agent failing to pick up jobs - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Azure self hosted agent failing to pick up jobs - Stack Overflow

programmeradmin4浏览0评论

I am new to azure and ci/cd. I created a self hosted agent. I created the agent because I receive an error message

No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form

I was directed to create an self hosted agent. So I followed the steps and the agent is connected to the server and listening for jobs. I updated my yml file, looking at the error the new localAgentPool did pick it up. However I am getting the same error, no hosted parallelism has been purchased or granted. I do not know why I am getting that error since I am using self hosted agent. Also not sure what parallel jobs even is. In the pipeline section it has free parallel jobs 1 viewing parallel jobs it has 0/1 I don't need to run the jobs parallel. This is for a school project, I will only ever have one job running at a time.

trigger:
- main

pool:
  vmImage: localAgentPool

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See 
  displayName: 'Run a multi-line script'

I thnk it's not choosing the correct pool?

Pool: Azure Piplelines Image:localAgentPool But I think it should be localAgentPool and image:localImage

I updated the yml to run without parallel but same no hosted parallelism error.

trigger:
- main

pool:
 vmImage: ubuntu-latest
 demainds:
   - parallelism: 1

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See 
  displayName: 'Run a multi-line script

I am new to azure and ci/cd. I created a self hosted agent. I created the agent because I receive an error message

No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form https://aka.ms/azpipelines-parallelism-request

I was directed to create an self hosted agent. So I followed the steps and the agent is connected to the server and listening for jobs. I updated my yml file, looking at the error the new localAgentPool did pick it up. However I am getting the same error, no hosted parallelism has been purchased or granted. I do not know why I am getting that error since I am using self hosted agent. Also not sure what parallel jobs even is. In the pipeline section it has free parallel jobs 1 viewing parallel jobs it has 0/1 I don't need to run the jobs parallel. This is for a school project, I will only ever have one job running at a time.

trigger:
- main

pool:
  vmImage: localAgentPool

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script'

I thnk it's not choosing the correct pool?

Pool: Azure Piplelines Image:localAgentPool But I think it should be localAgentPool and image:localImage

I updated the yml to run without parallel but same no hosted parallelism error.

trigger:
- main

pool:
 vmImage: ubuntu-latest
 demainds:
   - parallelism: 1

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script
Share Improve this question edited Feb 18 at 3:34 newdeveloper asked Feb 18 at 2:32 newdevelopernewdeveloper 7047 silver badges21 bronze badges 3
  • Once again check your self-hosted agent is connected and showing as Online in the Azure DevOps portal under Organization settings > Agent Pools > localAgentPool > Agents. – Suresh Chikkam Commented Feb 18 at 3:34
  • yes it is online. I even tried to run without parallel on azure default pools but no luck – newdeveloper Commented Feb 18 at 3:35
  • Removed vmImage parameter when using a self-hosted agent because we use vmImage only for Microsoft-hosted agents. – Suresh Chikkam Commented Feb 18 at 3:41
Add a comment  | 

1 Answer 1

Reset to default 1

To specify the self-hosted agent pool, please use name in pipeline yaml. vmImage is only valid in the Microsoft-hosted pool.

pool:
  name: localAgentPool          #<--- use name

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

Add if you would like to use demands(fix the typo) to find specific agent, there is no such parallelism, you need to check the agent capability for the value.

Please refer to the doc for more details.

发布评论

评论列表(0)

  1. 暂无评论