Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
Web Framework
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
9.9K
Star
14.5K
Fork
4.2K
GVP
dotNET China
/
Furion
Code
Issues
0
Pull Requests
0
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
在一个定时作业中同时添加多个触发器,当暂停该作业时,触发器只能停止其中的一个,其他的触发器仍然继续运行。
Done
#I655W9
hch
Opened this issue
2022-12-07 19:31
### Furion 版本号 哪个版本号? 4.8.2.11 --- ### .NET SDK 版本号 - [ ] .NET5 - [] .NET6 - [ x] .NET7 --- ### 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp - [ ] WinForm - [ ] WPF - [ ] Console --- ### 操作系统和版本 - [x] Windows(版本) - [ ] Linux(版本) - [ ] MacOS(版本) - [ ] 其他(版本) --- ### 代码环境 - [x] 开发环境(Development) - [ ] 生产环境(Production) - [ ] 测试环境(Tests/单元测试/集成测试 ) --- ### 描述你的问题 发生了什么? 在一个定时作业中同时添加多个触发器,当暂停该作业时,触发器只能停止其中的一个,其他的触发器仍然继续运行。 使用项目本身的samples代码直接测试出现,代码如下: Furion.Web.Core.Startup原代码第59行,修改原代码如下(添加多个触发器) ------------------------------------------------------------------------ options.AddJob<TestJob>("TestJob",Triggers.Period(5000), Triggers.Period(4000), Triggers.Period(3000)); ------------------------------------ 如上,在随意页面中执行如下: var job = _schedulerFactory.GetJob("TestJob"); job.Pause(); 然后会发现,上述的3个触发器,停止了1个,另外2个继续运行...... ### 异常堆栈信息 异常堆栈是什么? ---未出现任何错误信息。 ### 测试项目代码 > **⚠⚠ 必须提供完整可运行且包含错误的 `Git` 仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则将无法得到答复。⚠⚠** 您的代码下载地址? ---无 ### 数据库信息 - [x] Sqlite - [ ] SqlServer - [ ] MySQL - [ ] Oracle - [ ] PostgreSQL - [ ] Firebird - [ ] Cosmos - [ ] InMemoryDatabase --- ### 期待结果 期待的结果是? 当作业pause时,其所有触发器应均跟随Pause。源代码中应也是这个意思。 ---
### Furion 版本号 哪个版本号? 4.8.2.11 --- ### .NET SDK 版本号 - [ ] .NET5 - [] .NET6 - [ x] .NET7 --- ### 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp - [ ] WinForm - [ ] WPF - [ ] Console --- ### 操作系统和版本 - [x] Windows(版本) - [ ] Linux(版本) - [ ] MacOS(版本) - [ ] 其他(版本) --- ### 代码环境 - [x] 开发环境(Development) - [ ] 生产环境(Production) - [ ] 测试环境(Tests/单元测试/集成测试 ) --- ### 描述你的问题 发生了什么? 在一个定时作业中同时添加多个触发器,当暂停该作业时,触发器只能停止其中的一个,其他的触发器仍然继续运行。 使用项目本身的samples代码直接测试出现,代码如下: Furion.Web.Core.Startup原代码第59行,修改原代码如下(添加多个触发器) ------------------------------------------------------------------------ options.AddJob<TestJob>("TestJob",Triggers.Period(5000), Triggers.Period(4000), Triggers.Period(3000)); ------------------------------------ 如上,在随意页面中执行如下: var job = _schedulerFactory.GetJob("TestJob"); job.Pause(); 然后会发现,上述的3个触发器,停止了1个,另外2个继续运行...... ### 异常堆栈信息 异常堆栈是什么? ---未出现任何错误信息。 ### 测试项目代码 > **⚠⚠ 必须提供完整可运行且包含错误的 `Git` 仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则将无法得到答复。⚠⚠** 您的代码下载地址? ---无 ### 数据库信息 - [x] Sqlite - [ ] SqlServer - [ ] MySQL - [ ] Oracle - [ ] PostgreSQL - [ ] Firebird - [ ] Cosmos - [ ] InMemoryDatabase --- ### 期待结果 期待的结果是? 当作业pause时,其所有触发器应均跟随Pause。源代码中应也是这个意思。 ---
Comments (
5
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(3)
C#
1
https://gitee.com/dotnetchina/Furion.git
git@gitee.com:dotnetchina/Furion.git
dotnetchina
Furion
Furion
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register