After half a year, I've finally found the time to update this component (marginalized, probably going to be laid off).
2.7.0 is finally released~
Updated.
1. Add a timeout for API tasks, which can be configured globally or set for a single task.
2. Set the timed task log to view in reverse chronological order by start time by default.
3. Add a global configuration for whether to display the console log or not.
Two parameters are currently supportedShowConsoleLog //Whether to show the console log or not.
,DefaultApiTimeOut //default global API timeout
The code is as follows.
(quartzMUIOptions: new QuartzMUIOptions() { ShowConsoleLog=false,DefaultApiTimeOut=10});
4. Optimize the UI display - fixed operation bar and table header, easy to operate in the case of a large number of tasks
5. Optimize UI display-execution record message add support br keywords for line feed view.
6. Repair the problem that API class timed tasks will report errors in the absence of parameters
Note:2.7 Please add ApiTimeOut field manually if you are using database storage and updating from an older version.
Mysql example is as follows.ALTER TABLE
tab_quarz_taskADD COLUMN
ApiTimeOut int NULL;
GIT address (start and fork welcome).l2999019/: Lightweight, injected UI component based on Quartz ()
But let's just describe the characteristics of the program.
Lightweight, the project is only 1.43 MB (mainly part of the UI space, there is room for subsequent optimization)
Like swaggerUI, the project is less invasive and only requires the QuartzUI component injected in Startup.
Option to open a new project ( only need webapi can ) , can also be added directly to an existing project ( support for MVC, razor a variety of .NET host project )
Support Http timed calls to the corresponding service.
Supports calling local methods inherited from IJobService through DLL reflection, and supports dynamic parameter passing.
1.Add a timeout for API tasks, either globally or for individual tasks.
This attribute was suggested by the community, and is really necessary in practice, so this feature has been added.
The default timeout can now be matched globally with the following code.
(quartzMUIOptions: new QuartzMUIOptions() {DefaultApiTimeOut=10});
You can also configure a single timer task by creating an API class timer task, as shown in the following figure.
2. Set the timed task log to view in reverse chronological order by start time by default.
will be a timed task execution log sorting default to sort by start time to facilitate viewing the latest timed task information, such as the following.
3. Add a global configuration for whether to display the console log or not.
This attribute was suggested by the community, it is true that in debugging or special cases, the console has been outputting content, it is difficult to locate the project exceptions, so this feature was added.
The default timeout can now be matched globally with the following code.
(quartzMUIOptions: new QuartzMUIOptions() { ShowConsoleLog=false);
4. Optimize the UI display - fixed operation bar and table header, easy to operate in the case of a large number of tasks
Optimized the display effect of UI, fixed the operation bar and table header to facilitate the operation of tasks in the case of a large number of timed tasks.
Also proposed by the community
5. Optimize the UI display-execute the record message to add support for HTML tags to layout view
Suggestions from the community, optimized message logging for timed tasks Can be typed by adding </br> keywords (or other HTML tags), such as the following.
6. Repair the problem that API class timed tasks will report errors in the absence of parameters
Project upgrade content is introduced here ~, welcome your valuable comments!
A special thanks to the brothers who made the valuable comments :)JasonWangJie xds135 goodluckily ljc1160 smilesxsy
My blog will soon be synchronized to the Tencent Cloud developer community, inviting everyone to join in: /developer/support-plan?invite_code=3c3dzwjbcao00