Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crawlab 重启之后,重启前 pending 的任务无法继续执行(After crawlab restart, tasks pending before restart cannot continue) #1446

Open
ma-pony opened this issue Feb 19, 2024 · 6 comments
Labels
bug Something isn't working task Task related

Comments

@ma-pony
Copy link
Contributor

ma-pony commented Feb 19, 2024

Bug 描述
当我重启crawlab之后,在重启之前处于pending的任务无法成功调度,一直处于pending状态。

复现步骤
该 Bug 复现步骤如下

  1. 保证当前tasks列表中有pending的任务,且node为空
  2. 重启master和worker节点
  3. 重启成功后pending的任务会一直pending

期望结果
重启crawlab之后,之前处于pending的任务可以继续调度执行。


Describe the bug
When I restarted crawlab, the tasks that were in pending before the restart could not be successfully scheduled and stayed in pending state.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure that there is a pending task in the current tasks list and that the node is empty.
  2. Restart the master and worker nodes.
  3. After a successful restart, the pending tasks will remain pending.

Expected behavior
After restarting crawlab, tasks that were previously in pending can continue to be scheduled for execution.

@ma-pony ma-pony added the bug Something isn't working label Feb 19, 2024
@ma-pony ma-pony changed the title crawlab 重启之后之前 pending 的任务无法继续执行 crawlab 重启之后,重启前 pending 的任务无法继续执行 Feb 19, 2024
@oleksa-dev
Copy link

@ma-pony hey!
I would appreciate if you provide relevant translation for your issue in ENG.
I'm not sure if Google Translator handle it properly.
Thanks)

@ma-pony ma-pony changed the title crawlab 重启之后,重启前 pending 的任务无法继续执行 crawlab 重启之后,重启前 pending 的任务无法继续执行 After crawlab restart, tasks pending before restart cannot continue Mar 5, 2024
@ma-pony ma-pony changed the title crawlab 重启之后,重启前 pending 的任务无法继续执行 After crawlab restart, tasks pending before restart cannot continue crawlab 重启之后,重启前 pending 的任务无法继续执行(After crawlab restart, tasks pending before restart cannot continue) Mar 5, 2024
@ma-pony
Copy link
Contributor Author

ma-pony commented Mar 5, 2024

@ma-pony hey! I would appreciate if you provide relevant translation for your issue in ENG. I'm not sure if Google Translator handle it properly. Thanks)

Thanks for the suggestion!

@oleksa-dev
Copy link

@ma-pony thanks for your translation.
Have the same issues. In my case I have > 400 scheduled tasks and lot of them staying in pending state and never executed.
Seems like Redis queues don't clear in proper way.

@ma-pony
Copy link
Contributor Author

ma-pony commented Mar 6, 2024

@ma-pony thanks for your translation. Have the same issues. In my case I have > 400 scheduled tasks and lot of them staying in pending state and never executed. Seems like Redis queues don't clear in proper way.

I have 6k+ scheduled tasks...

@tikazyq tikazyq added the task Task related label Mar 20, 2024
@oleksa-dev
Copy link

@ma-pony 6k+ scheduled tasks it is impressive.
What kind of Crawlab installation you using Docker based or Kubernetes and what kind of infrastructure you using.
Could you please share some details?

@ma-pony
Copy link
Contributor Author

ma-pony commented Apr 5, 2024

@ma-pony 6k+ scheduled tasks it is impressive. What kind of Crawlab installation you using Docker based or Kubernetes and what kind of infrastructure you using. Could you please share some details?

https://docs.crawlab.cn/en/guide/installation/kubernetes.html

four 8C16G machines, deployed using k8s, one master node and six worker node, with worker configured with 4C16G and master configured with 6C12G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working task Task related
Projects
None yet
Development

No branches or pull requests

3 participants