Code Monkey home page Code Monkey logo

Comments (4)

ctacy avatar ctacy commented on May 27, 2024

1

from hangfire.httpjob.

yuzd avatar yuzd commented on May 27, 2024

如果你的job正在执行 或者执行错误(设置了重试)。这个时候你关闭了job调度服务。再次重启的时候会重新执行。这个场景就会造成没有按照实际时间执行,不知道你是不是这样的情况

from hangfire.httpjob.

ctacy avatar ctacy commented on May 27, 2024

如果你的job正在执行 或者执行错误(设置了重试)。这个时候你关闭了job调度服务。再次重启的时候会重新执行。这个场景就会造成没有按照实际时间执行,不知道你是不是这样的情况

我就是添加了一个周期性调度,然后关闭了dashboard页面,间隔时间短的话会准时执行,比如1个小时之类的,具体多久我没有测试;但是时间隔太久的话,就不会执行,比如我上午创建了每日00:00执行,然后关闭dashboard页面。到了指定时间不会执行。

我怀疑是iis应用程序池回收机制导致,有尝试设置回收时间为0,经过一天测试,暂时可行;

我的疑问是:如果要调度正常执行,是不是必须得一直开启dashboard页面?

from hangfire.httpjob.

yuzd avatar yuzd commented on May 27, 2024

》我的疑问是:如果要调度正常执行,是不是必须得一直开启dashboard页面?
不用的,dashbord只是一个工具让你查看job的执行情况,调度是后台代码执行的。和你开不开dashbord没有关系。
另外建议不要放在iis部署。建议放在windows服务部署

如果放在iis 也得要配置一下 让iis程序池不要回收

from hangfire.httpjob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.