narrowizard opened a new issue, #4486: URL: https://github.com/apache/incubator-devlake/issues/4486
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened It seems devlake make deadlock and panic when PIPELINE_MAX_PARALLEL > 1 ### What do you expect to happen It should run pipelines in parallels if PIPELINE_MAX_PARALLEL > 1. ### How to reproduce set env PIPELINE_MAX_PARALLEL = 3, and create multi pipelines at the same time. some pipelines with label 'parallels/typeA', and others with label 'parallels/typeB'. ### Anything else ``` message:{"log":"\u001b[0m\u001b[33m[0.309ms] \u001b[34;1m[rows:0]\u001b[0m UPDATE \"_devlake_pipelines\" SET \"began_at\"='2023-02-22 07:06:38.72',\"message\"='',\"status\"='TASK_RUNNING',\"updated_at\"='2023-02-22 07:06:38.72' WHERE id = 0\"\n","stream":"stdout","time":"2023-02-22T07:06:38.721141119Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"panic: ERROR: current transaction is aborted, commands ignored until end of transaction block (SQLSTATE 25P02)\n","stream":"stderr","time":"2023-02-22T07:06:38.723916307Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"Wraps: (2) ERROR: current transaction is aborted, commands ignored until end of transaction block (SQLSTATE 25P02)\n","stream":"stderr","time":"2023-02-22T07:06:38.723929524Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"Error types: (1) *hintdetail.withDetail (2) *pgconn.PgError\n","stream":"stderr","time":"2023-02-22T07:06:38.723933762Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"\n","stream":"stderr","time":"2023-02-22T07:06:38.723936917Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"goroutine 1410 [running]:\n","stream":"stderr","time":"2023-02-22T07:06:38.72393967Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"github.com/apache/incubator-devlake/services.RunPipelineInQueue(0x1)\n","stream":"stderr","time":"2023-02-22T07:06:38.723942507Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"\u0009/app/services/pipeline.go:222 +0x1033\n","stream":"stderr","time":"2023-02-22T07:06:38.723945354Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"created by github.com/apache/incubator-devlake/services.pipelineServiceInit\n","stream":"stderr","time":"2023-02-22T07:06:38.723950696Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 message:{"log":"\u0009/app/services/pipeline.go:109 +0x5a5\n","stream":"stderr","time":"2023-02-22T07:06:38.723953579Z"} devlake:/var/log/containers/devlake-6fd9b9559f-p64qk_default_devlake-e7b5e6643f117a90e067a5367b366729eb90507c3fa382d5453b11119da450e0.log t:07:06:39.+0000 ``` ### Version v0.15.0 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
