zhaopeiym / quartzui Goto Github PK
View Code? Open in Web Editor NEW基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
License: MIT License
基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
License: MIT License
如果有错误提示了额,能不能忽略,继续下个时间,继续执行
JobPersistenceException: Couldn't store trigger 'DEFAULT.MT_2885808657110662513' for ' default.name482285245' job: The job ( default.name482285245) referenced by the trigger does not exist.
执行用户上传的C#脚本。
可选方案我目前找到 dotnet-script。
但需要考虑产生的问题,比如隔离,安全。
b8f262c62ec6: Pull complete
c1bb02c48b82: Pull complete
aac1cb0f3412: Pull complete
9e34bee673bb: Pull complete
e1c733f95268: Pull complete
b108c5b144e9: Waiting
c422c891e2bc: Download complete
6e71db4976f6: Waiting
当前很多业务平台采用 noSql库,希望集能支持mogoDB,非常感谢
比如我有一个计算排放量的算法,按照不同的参数计算 比如这个排放量是是分部计算100个公司的排放量,我给一百个公司分别设置不同的时间执行调用这个方法,但是传的是不同的公司参数,根据参数计算,这个时候就会遇到如果其中一个公司的还没有算完 下个任务就开始了 由于调用的是同一个方法,只是参数不一样就会造成阻塞 如果解决
QuartzNetAPI 是接口api,QuartzNetWeb是ui 他们是怎么一起打包在bennyzhao/quartzui 这个镜像里面的,可以教我吗,感谢!!!
克隆代码后没做任何修改直接编译通过,但双击Host.exe或cmd窗口中执行dotnet Host.exe命令均无反应。请给位兄弟姐妹指点迷津,是不是我哪个环节漏了,多谢!!!
微软提示:
app.UseCors()必须在app.UseRouting()和app.UseEndpoints()之间。
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
System.InvalidOperationException: Endpoint Host.Controllers.JobController.GetAllJobBriefInfo (Host) contains CORS metadata, but a middleware was not found that supports CORS.
Configure your application startup by adding app.UseCors() inside the call to Configure(..) in the application startup code. The call to app.UseAuthorization() must appear between app.UseRouting() and app.UseEndpoints(...).
at Microsoft.AspNetCore.Routing.EndpointMiddleware.ThrowMissingCorsMiddlewareException(Endpoint endpoint)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Host.Startup.<>c.<b__5_0>d.MoveNext() in D:\workspace\quartzui-dev\QuartzNetAPI\Host\Startup.cs:line 84
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
各个版本区别是什么
使用MySql数据库时,GroupName和任务名如果是中文 会变成?????,如何解决?
System.InvalidOperationException: Endpoint Host.Controllers.JobController.GetAllJob (Host) contains CORS metadata, but a middleware was not found that supports CORS.
Configure your application startup by adding app.UseCors() inside the call to Configure(..) in the application startup code. The call to app.UseAuthorization() must appear between app.UseRouting() and app.UseEndpoints(...).
at Microsoft.AspNetCore.Routing.EndpointMiddleware.ThrowMissingCorsMiddlewareException(Endpoint endpoint)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Host.Startup.<>c.<b__5_0>d.MoveNext() in C:\Users\Administrator\Desktop\quartzui-dev\QuartzNetAPI\Host\Startup.cs:line 91
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Connection: keep-alive
Content-Type: application/json
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Host: localhost:8100
Referer: http://localhost:8100/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
本地运行起来跟你演示地址的运行效果不一样,少了RabbitMQ及MQTT的配置,添加任务没法选择任务类型,这个是怎么开放出来?
它非常有用,可以提供将标签文本翻译为资源的能力。
一个任务执行很耗时,超过间隔时间后,任务没有执行完毕,quartzui会等到执行结果后再执行下一次的吗?还是说会并发执行
我想请教一个问题,就是我执行的任务可能时间比较长半小时,十几分钟的都会有,怎么回调接收任务执行结果,比如说任务的执行结果,执行过程日志,执行发生异常等情况,保存到这个任务系统里
配置sql server数据库连接字符串报错
context.JobDetail.JobDataMap[Constant.EXCEPTION],会导致无限调用吗?而不是根据cron表达式
当配置的域名地址不是一个根域名时,比如配置的是 http://test.test.com/quartzui
即中间会多加一个路由做转发时,静态文件会跳到根域名底下,导致找不到
1.列表页想增加最近任务的执行耗时,最后的日志执行结果信息
2.日志倒序
消息 111,级别 15,状态 1,第 65 行
'CREATE TRIGGER' 必须是查询批次中的第一个语句。
消息 111,级别 15,状态 1,第 93 行
'CREATE TRIGGER' 必须是查询批次中的第一个语句。
消息 111,级别 15,状态 1,第 111 行
'CREATE TRIGGER' 必须是查询批次中的第一个语句。
消息 111,级别 15,状态 1,第 128 行
'CREATE TRIGGER' 必须是查询批次中的第一个语句。
还在继续更新吗
目前看了下示例,是把schedulecenter注册成单例的,每次一调用就start了,如何做到重启以后自动start
程序正常运行了一段时间,但近两天每次再早上停止运行了,不知道什么原因,错误提示如下:
[Error] An error occurred while scanning for the next trigger to fire.
Quartz.Impl.AdoJobStore.LockException: Failure obtaining db row lock: SQLite Error 14: 'unable to open database file'.
---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.Execute
app.UseRouting();
app.UseAuthorization();
app.UseCors("AllowSameDomain");
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
如上,应该放在 app.UseRouting(); 和 UseEndpoints 之间
问题描述:
系统定时在 0点 执行多个 Http Get 任务时, 触发以下异常:
`
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Host.HttpHelper.GetHttpClient(String url) in D:\worksapce\repository\quartzui\QuartzNetAPI\Host\Common\HttpHelper.cs:line 32
`
显然是多线程操作 Dictionary 问题
刚拉的树莓派镜像,登录口令使用 admin,登录失败
任务比较耗费时间时候,Quartzui频繁 出现The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing
异常错误。建议应提供可配置最长超时设置。
The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing
任务执行时间很长,大概5分钟左右,HttpClient默认超时时间是100秒,可否把这个时间改为配置或者设置长一点。我找到对应的代码了,但是不知道你这边是怎么打包成docker的,所以麻烦了
现在太多WebApi通过JWT授权认证方式。似乎.net core JWT不允许那种超长不过期的Token。
也就是说无法通过在QuartzUI中加入固定的Head参数Token来调用WebApi
有啥好的解决方案?或者能否加入针对Token请求接口和刷新 Token接口?
集群化部署支持吗?
Failed to obtain DB connection from data source 'default': Npgsql.NpgsqlException (0x80004005): The connection pool has been exhausted, either raise MaxPoolSize (currently 20) or Timeout (currently 15 seconds)
任务在所有的trigger都执行完毕后会被删除,这样的设计无法达到监管留痕的效果!
https://scheduler.haojima.net/
这个地址的系统设置和hub.docker上面的镜像不一致
当QRTZ_JOB_DETAILS表中JOB_CLASS_NAME字段存在一个与当前创建任务不同的类型时,界面不会展示数据。
出错位置在SchedulerCenter==>GetAllJobBriefInfoAsync方法的第十行。
报错信息:Couldn't retrieve job because a required type was not found: Could not load type 'XXX'
使用两套程序分别向一个数据库中创建任务时发现的这个问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.