yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
620 stars 184 forks source link

Agent服务心跳怎么设置 #132

Closed honorduan closed 2 years ago

honorduan commented 2 years ago

如图,Agent现没心跳检测,问下如何设置呢 image

yuzd commented 2 years ago

agent启动 了吗? 你是按照 https://github.com/yuzd/Hangfire.HttpJob/wiki/03.HttpJob.Agent%E7%BB%84%E4%BB%B6%E4%BB%8B%E7%BB%8D%E4%BB%A5%E5%8F%8A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8 来开发agent的吗?

honorduan commented 2 years ago

是按照文档上的来开发的,job已经能够正常调度,就是服务器这里的心跳检测是错误的。

yuzd commented 2 years ago

你的agent和调度server分别是如何部署的呢?

honorduan commented 2 years ago

你的agent和调度server分别是如何部署的呢? 就是我会启动一个server端的服务。都是本地启动,server端用的是5000端口,agent用的是5002端口,现在是agent已经注册到server上面了。 image 如图两个服务均在正常运行。

honorduan commented 2 years ago

image 经过排查,已经发现在问题了,这个地方一定要加上才能检测心跳

yuzd commented 2 years ago

对 的 。