-
Notifications
You must be signed in to change notification settings - Fork 63
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
Invoke(Begin = "2017-7-22 10:00", Interval = 1000 * 3600 * 24, SkipWhileExecuting = false) #15
Comments
现在呢?能看到日志吗?SkipWhileExecuting表示是否需要等待上一次执行完成之后再执行。 |
@keke93 |
应该和IIS无关,IIS只能回收托管资源,.net core app在IIS上并不是托管资源 |
@kagamine |
@MeetOct 应该是iis的原因,包括在用asp.net core 自带的IHostedService接口来实现后台任务时,如果是部署在iis中的,在iis回收资源时,任务是会停止的。参看下面的链接https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/multi-container-microservice-net-applications/background-tasks-with-ihostedservice |
@wanbolantian |
@MeetOct 我也遇到这个问题,怎么解决的啊?跪求。。。 |
@tongfei-github 保证你的app别被杀死就行了。可以试试,应用程序池-->高级设置-->空闲超时操作,默认是Terminate,改成Suspend。(老一点的IIS没有这个配置)。 |
22日没执行,23日执行,24日没执行,是SkipWhileExecuting=false的问题么?用的1.1.0-rtm-10026版
The text was updated successfully, but these errors were encountered: