How often does Quartz.net load trigger settings?

×

Error message

  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Undefined index: value in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Undefined index: value in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Trying to access array offset on value of type bool in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Trying to access array offset on value of type null in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Trying to access array offset on value of type bool in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Trying to access array offset on value of type null in answers_field_get_value() (line 24 of H:\root\home\marcluo777-001\www\healthcentre\sites\all\modules\answers\includes\answers.field_utils.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of H:\root\home\marcluo777-001\www\healthcentre\includes\common.inc).
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of H:\root\home\marcluo777-001\www\healthcentre\includes\menu.inc).

Primary tabs

+1
0
-1

Also, there are: 1. Windows Service keeping Quartz.net scheduler running 2. ASP.NET MVC Web app that acts like an admin dashboard which allows setting the schedule.

They both shares the same SQLite database with Quartz.net tables.

As I change the schedule using the second app (web app), the Windows Service catches these changes and follows the schedule that was just set.

I thought I should notify the first app somehow that the schedule change was made and it should be reloaded (by pausing jobs and starting them again or in some other way). But it turned out the Windows Service app loads these changes and there is no need for any other work.

My questions are:

How reliable is this construction?
Should I just let it work as it's now or I should create my own schedule settings reloading mechanism?

Luckily Quartz.Net is open source on GitHub.

+1
+1
-1

If we take a look at the Run() method in the QuartzSchedulerThread we can see that whenever a thread becomes available, the JobStore is asked to AcquireNextTriggers().

Here we can see the driver delegate (which in your case is the StdAdoDelegate) is asked to SelectTriggerToAcquire().

That method directly accesses your SQLLite job store, so to answer your two questions:

This construction is very reliable because it is repeatedly and directly queried by the main scheduler.
You should arguably just let it work as it is now.