Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Scheduler Jobs WAY Too Frequently - massive performance dragScheduler Jobs WAY Too Frequently - massive performance drag
Previous
 
Next
New Post
3/6/2012 10:04 PM
 

Hello,

I notice that scheduler jobs are running a job that is supposed to run every 5 min, every second or less!!! (DNN 6.1.3)

I first noticed this in writing my own custom scheduler job, which I had to code around, but then I looked at the base DNN jobs and noticed the same thing is happening. Every job that is out there, it running every second or partial second. This is obviously putting a huge load on the server and severely impacting performance in multiple ways (server load, quick increases in DB size, etc.)

This is a low volume site and not sure if it is technically in a web farm or not. It is just a simple shared hosting account, which, not being a hardware person, not sure if these are typically run in a web farm or not. But in the below, it always states that the server is the same.

This is a multi-portal site and each website is set to use the DefaultAppPool (as set using the hosting providers client tools, not IIS directly) 

Any Ideas?

Thanks in Advance,

Chad

This Job is configured to run EVERY 5 MIN with a 1 MIN Retry.

Description Ran On Server Duration (seconds) Succeeded Start/End/Next
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.026
  • S: 3/6/2012 8:28:56 PM
  • E: 3/6/2012 8:28:56 PM
  • N: 3/6/2012 8:33:56 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.03
  • S: 3/6/2012 8:28:50 PM
  • E: 3/6/2012 8:28:50 PM
  • N: 3/6/2012 8:33:50 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.02
  • S: 3/6/2012 8:28:50 PM
  • E: 3/6/2012 8:28:50 PM
  • N: 3/6/2012 8:33:50 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.03
  • S: 3/6/2012 8:28:49 PM
  • E: 3/6/2012 8:28:49 PM
  • N: 3/6/2012 8:33:49 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.023
  • S: 3/6/2012 8:28:49 PM
  • E: 3/6/2012 8:28:49 PM
  • N: 3/6/2012 8:33:49 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.03
  • S: 3/6/2012 8:23:46 PM
  • E: 3/6/2012 8:23:47 PM
  • N: 3/6/2012 8:28:46 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.04
  • S: 3/6/2012 8:23:38 PM
  • E: 3/6/2012 8:23:38 PM
  • N: 3/6/2012 8:28:38 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.047
  • S: 3/6/2012 8:18:33 PM
  • E: 3/6/2012 8:18:33 PM
  • N: 3/6/2012 8:23:33 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.06
  • S: 3/6/2012 8:18:32 PM
  • E: 3/6/2012 8:18:32 PM
  • N: 3/6/2012 8:23:32 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.063
  • S: 3/6/2012 8:13:28 PM
  • E: 3/6/2012 8:13:28 PM
  • N: 3/6/2012 8:18:28 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.036
  • S: 3/6/2012 8:07:48 PM
  • E: 3/6/2012 8:07:48 PM
  • N: 3/6/2012 8:12:48 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.044
  • S: 3/6/2012 8:07:45 PM
  • E: 3/6/2012 8:07:45 PM
  • N: 3/6/2012 8:12:45 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.033
  • S: 3/6/2012 8:07:44 PM
  • E: 3/6/2012 8:07:44 PM
  • N: 3/6/2012 8:12:44 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.057
  • S: 3/6/2012 8:07:43 PM
  • E: 3/6/2012 8:07:43 PM
  • N: 3/6/2012 8:12:43 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.05
  • S: 3/6/2012 8:02:38 PM
  • E: 3/6/2012 8:02:38 PM
  • N: 3/6/2012 8:07:38 PM
Purge Log Buffer Purged log entries successfully DNPWEB6-TX2 0.03
  • S: 3/6/2012 8:02:29 PM
  • E: 3/6/2012 8:02:29 PM
  • N: 3/6/2012 8:07:29 PM


 
New Post
3/8/2012 4:56 AM
 
Hi Chad

Can you put here also a history of this Scheduler? And check also Retry period: is it 1 min or 1 sec?

Sergey, forDNN Team
 
New Post
3/8/2012 11:32 AM
 
Hi Sergey,

Sorry, I'm not clear on your first question...which particular schedule history are you looking for? The Retry is definitely 1 MIN and not 1 SEC.

I actually turned off the Purge Log Buffer as it seemed to cause issues with processing PayPal IPN's...but that is another issue.


Here is the history of another scheduled job, the Purge Users Online. You will notice it too has issues. If you look at the most recent, they are fine and run every 5 min as they are supposed to, but if you go down a bit, you will see the same job processing at 7 or 8 instances and pretty much the same time. (See 9:00 for example)

Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.02
  • S: 3/8/2012 10:12:19 AM
  • E: 3/8/2012 10:12:19 AM
  • N: 3/8/2012 10:17:19 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.007
  • S: 3/8/2012 10:07:07 AM
  • E: 3/8/2012 10:07:07 AM
  • N: 3/8/2012 10:12:07 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.07
  • S: 3/8/2012 10:01:58 AM
  • E: 3/8/2012 10:01:58 AM
  • N: 3/8/2012 10:06:58 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.003
  • S: 3/8/2012 9:56:47 AM
  • E: 3/8/2012 9:56:47 AM
  • N: 3/8/2012 10:01:47 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.007
  • S: 3/8/2012 9:51:39 AM
  • E: 3/8/2012 9:51:39 AM
  • N: 3/8/2012 9:56:39 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.023
  • S: 3/8/2012 9:46:40 AM
  • E: 3/8/2012 9:46:40 AM
  • N: 3/8/2012 9:51:40 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.003
  • S: 3/8/2012 9:46:29 AM
  • E: 3/8/2012 9:46:29 AM
  • N: 3/8/2012 9:51:29 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.014
  • S: 3/8/2012 9:41:29 AM
  • E: 3/8/2012 9:41:29 AM
  • N: 3/8/2012 9:46:29 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:41:18 AM
  • E: 3/8/2012 9:41:18 AM
  • N: 3/8/2012 9:46:18 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.003
  • S: 3/8/2012 9:36:21 AM
  • E: 3/8/2012 9:36:21 AM
  • N: 3/8/2012 9:41:21 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.017
  • S: 3/8/2012 9:36:10 AM
  • E: 3/8/2012 9:36:10 AM
  • N: 3/8/2012 9:41:10 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.073
  • S: 3/8/2012 9:31:12 AM
  • E: 3/8/2012 9:31:12 AM
  • N: 3/8/2012 9:36:12 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.037
  • S: 3/8/2012 9:31:01 AM
  • E: 3/8/2012 9:31:01 AM
  • N: 3/8/2012 9:36:01 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:26:00 AM
  • E: 3/8/2012 9:26:01 AM
  • N: 3/8/2012 9:31:00 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.004
  • S: 3/8/2012 9:25:50 AM
  • E: 3/8/2012 9:25:50 AM
  • N: 3/8/2012 9:30:50 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.06
  • S: 3/8/2012 9:20:51 AM
  • E: 3/8/2012 9:20:51 AM
  • N: 3/8/2012 9:25:51 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:20:40 AM
  • E: 3/8/2012 9:20:40 AM
  • N: 3/8/2012 9:25:40 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.007
  • S: 3/8/2012 9:15:42 AM
  • E: 3/8/2012 9:15:42 AM
  • N: 3/8/2012 9:20:42 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:15:32 AM
  • E: 3/8/2012 9:15:32 AM
  • N: 3/8/2012 9:20:32 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:15:31 AM
  • E: 3/8/2012 9:15:31 AM
  • N: 3/8/2012 9:20:31 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.037
  • S: 3/8/2012 9:10:30 AM
  • E: 3/8/2012 9:10:30 AM
  • N: 3/8/2012 9:15:30 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.044
  • S: 3/8/2012 9:10:30 AM
  • E: 3/8/2012 9:10:30 AM
  • N: 3/8/2012 9:15:30 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.02
  • S: 3/8/2012 9:10:29 AM
  • E: 3/8/2012 9:10:29 AM
  • N: 3/8/2012 9:15:29 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 9:05:22 AM
  • E: 3/8/2012 9:05:22 AM
  • N: 3/8/2012 9:10:22 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.013
  • S: 3/8/2012 9:05:21 AM
  • E: 3/8/2012 9:05:21 AM
  • N: 3/8/2012 9:10:21 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.013
  • S: 3/8/2012 9:05:21 AM
  • E: 3/8/2012 9:05:21 AM
  • N: 3/8/2012 9:10:21 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.026
  • S: 3/8/2012 9:00:13 AM
  • E: 3/8/2012 9:00:13 AM
  • N: 3/8/2012 9:05:13 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.023
  • S: 3/8/2012 9:00:12 AM
  • E: 3/8/2012 9:00:12 AM
  • N: 3/8/2012 9:05:12 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.03
  • S: 3/8/2012 9:00:12 AM
  • E: 3/8/2012 9:00:12 AM
  • N: 3/8/2012 9:05:12 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.04
  • S: 3/8/2012 9:00:11 AM
  • E: 3/8/2012 9:00:11 AM
  • N: 3/8/2012 9:05:11 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.03
  • S: 3/8/2012 9:00:11 AM
  • E: 3/8/2012 9:00:11 AM
  • N: 3/8/2012 9:05:11 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.027
  • S: 3/8/2012 9:00:11 AM
  • E: 3/8/2012 9:00:11 AM
  • N: 3/8/2012 9:05:11 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.03
  • S: 3/8/2012 9:00:10 AM
  • E: 3/8/2012 9:00:10 AM
  • N: 3/8/2012 9:05:10 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.033
  • S: 3/8/2012 9:00:09 AM
  • E: 3/8/2012 9:00:09 AM
  • N: 3/8/2012 9:05:09 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.006
  • S: 3/8/2012 9:00:09 AM
  • E: 3/8/2012 9:00:09 AM
  • N: 3/8/2012 9:05:09 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.036
  • S: 3/8/2012 9:00:06 AM
  • E: 3/8/2012 9:00:06 AM
  • N: 3/8/2012 9:05:06 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.14
  • S: 3/8/2012 9:00:05 AM
  • E: 3/8/2012 9:00:05 AM
  • N: 3/8/2012 9:05:05 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.07
  • S: 3/8/2012 9:00:03 AM
  • E: 3/8/2012 9:00:04 AM
  • N: 3/8/2012 9:05:03 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.006
  • S: 3/8/2012 8:55:01 AM
  • E: 3/8/2012 8:55:01 AM
  • N: 3/8/2012 9:00:01 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 8:55:01 AM
  • E: 3/8/2012 8:55:01 AM
  • N: 3/8/2012 9:00:01 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.033
  • S: 3/8/2012 8:55:00 AM
  • E: 3/8/2012 8:55:00 AM
  • N: 3/8/2012 9:00:00 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 8:54:58 AM
  • E: 3/8/2012 8:54:58 AM
  • N: 3/8/2012 8:59:58 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.003
  • S: 3/8/2012 8:54:58 AM
  • E: 3/8/2012 8:54:58 AM
  • N: 3/8/2012 8:59:58 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.033
  • S: 3/8/2012 8:54:54 AM
  • E: 3/8/2012 8:54:54 AM
  • N: 3/8/2012 8:59:54 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.01
  • S: 3/8/2012 8:49:53 AM
  • E: 3/8/2012 8:49:53 AM
  • N: 3/8/2012 8:54:53 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.03
  • S: 3/8/2012 8:49:52 AM
  • E: 3/8/2012 8:49:52 AM
  • N: 3/8/2012 8:54:52 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.014
  • S: 3/8/2012 8:49:49 AM
  • E: 3/8/2012 8:49:49 AM
  • N: 3/8/2012 8:54:49 AM
Purge Users Online UsersOnline purge completed. DNPWEB6-TX20.037
  • S: 3/8/2012 8:49:46 AM
  • E: 3/8/2012 8:49:46 AM
  • N: 3/8/2012 8:54:46 AM

 
New Post
3/8/2012 12:41 PM
 
Chad;
I've been chatting with Cathal Connolly about this thread and have a couple of questions and tips for you.

Have you enabled "Run on Server" for Purge Users Online job?
Can you try setting the job to run every 10 minutes and retry every 2 mins?

Do you have any custom modules using the Scheduler? If so, how are they setup in the Scheduler?

In 6.x we added additional logging so would you look into your ~\Portals\_default\Logs and see if the log.resources files have any matching errors for when the Purge Users Online job runs multiple times in quick (milliseconds) succession?

We've not seen any recent issues reported with Purge Users Online so we'd like to get as much info as possible.


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
3/8/2012 1:57 PM
 

Hi Ken,

Glad to hear this is in discussion with the team! I have not enabled the "Run on Server" option. It is not available as I don't/can't have the Host>Web Farm setting enabled as I have community edition, and I don't know for sure if it is running on a web farm...I don't think so as it is just a low level shared hosting space I am used.

Catchup Enabled is set to False.

I changed the timing to 10 min with a 2 min retry and we'll see what happens, but I doubt it will have an impact because of how I had my custom scheduler module set up (which gets me to your next question).

Yes, I have a custom scheduler module that is set to run every 15 min with no retry on failure (I disabled it in hopes of improvement as I thought any thing that pointed to running more in this case, was not desirable). It would run up to 12 instances of the job simultaneously. And each instance would pull data from another site and log 5 rows in a database table....the job was running constantly and filling up my database quite rapidly, as you can imagine. I ended up by using my own stored procedure to check to see if it was time to run again. After a couple of iterations, it seems to be mostly in check with my latest logic. (At first it was checking time in the schedule history table to determine if it was time to run again or not, but that didn't work so now I check the database table that the job is updating itself to see if it is time to run. This mostly works, but I still see instances where the job runs in 2 near simultaneous instances). You can see it below. The funny thing is, given the logic of my code, there is no way it should've run multiple times, but it did..made me wonder of there is some sort of buffer involved when updating the schedule History table, because if there is, that was what allowed the job to keep running I guess.

As far as the log.resources file, I have many errors in it....not sure if there is anything in particular you are looking for, but here is one that found that supports the concept of the Purge File Cache running multiple instances simultaneously. There are 2 threads (31 and 32) that are both going after the same file at the same exact time and locking each other out:

2012-03-08 01:05:48,777 [DNPWEB6-TX2][Thread:31][ERROR] DotNetNuke.Services.ModuleCache.FileProvider - The process cannot access the file 'd:\HostingSpaces\InciteClient\DNN\wwwroot\Portals\Doggie\Cache\Pages\980_ACABA51644A302FBB325E30E7931BAF8.data.resources' because it is being used by another process.
System.IO.IOException: The process cannot access the file 'd:\HostingSpaces\InciteClient\DNN\wwwroot\Portals\Doggie\Cache\Pages\980_ACABA51644A302FBB325E30E7931BAF8.data.resources' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at DotNetNuke.Services.ModuleCache.FileProvider.SetModule(Int32 tabModuleId, String cacheKey, TimeSpan duration, Byte[] output)
2012-03-08 01:05:48,777 [DNPWEB6-TX2][Thread:32][ERROR] DotNetNuke.Services.ModuleCache.FileProvider - The process cannot access the file 'd:\HostingSpaces\InciteClient\DNN\wwwroot\Portals\Doggie\Cache\Pages\980_ACABA51644A302FBB325E30E7931BAF8.data.resources' because it is being used by another process.
System.IO.IOException: The process cannot access the file 'd:\HostingSpaces\InciteClient\DNN\wwwroot\Portals\Doggie\Cache\Pages\980_ACABA51644A302FBB325E30E7931BAF8.data.resources' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at DotNetNuke.Services.ModuleCache.FileProvider.SetModule(Int32 tabModuleId, String cacheKey, TimeSpan duration, Byte[] output)

Oh, and here are some interesting errors I think:

System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Scheduling.DNNScheduling.SqlDataProvider.GetNextScheduledTask(String Server) at DotNetNuke.Services.Scheduling.DNNScheduling.SchedulingController.GetNextScheduledTask(String Server) at DotNetNuke.Services.Scheduling.DNNScheduling.DNNScheduler.GetNextScheduledTask(String server) at DotNetNuke.Services.Scheduling.SchedulingProvider.set_ScheduleLastPolled(DateTime value) at DotNetNuke.Common.Initialize.RunSchedule(HttpRequest request)

Note I am having this issue on various scheduled jobs, not just Purge Users Online...but also Purge Log Buffer, and my custom module, and maybe others...I suspect all, but haven't checked all as of yet to confirm. Also having this on another DNN instance which is v6.0.0

And one last thing, not sure if this is related, but I think it is, I was having issues with the Purge Log Buffer job running up to 5 or 7 instances simultaneously as well job and have since disabled it. It seems like it was causing issues with this in whole as well as it was causing my PayPalIPN posts to not get processed. See here.

Sorry for the long reply, but you said you wanted as much detail as possible :). I am also not adverse to having you look at things directly if you need. Let me know.

Thanks,
Chad

ALTER PROCEDURE [dbo].[Incite_MQ_GetSpotPriceSchedLastRunTime] 
	-- Add the parameters for the stored procedure here
	@ScheduleTypeFullName nvarchar(200)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	DECLARE @PHLastInsert as DateTime
	SET @PHLastInsert = (Select MAX(InsertDateTime) from Incite_MQ_PriceHistory)

	SELECT TOP (1) 
			
		CAST(CASE WHEN CURRENT_TIMESTAMP >= ISNULL(DATEADD(mi,15,@PHLastInsert), CAST('1/1/2000' as Date)) THEN 1 ELSE 0 END AS bit) AS RunNow,
		@PHLastInsert as PHLastRun,
		--Following uses logic it obtains from Scheduler table, but maybe its being buffered???
		CAST(CASE WHEN CURRENT_TIMESTAMP >= ISNULL(SH.NextStart, CAST('1/1/2000' as Date)) THEN 1 ELSE 0 END AS bit) AS RunNowOLD, 
		SH.StartDate as LastRunTime, 
		CURRENT_TIMESTAMP as CurrentTime,
		ISNULL(SH.NextStart, CAST('1/1/2000' as Date)) as NextRunTime,
		SH.NextStart as DBNextRunTime,*
		
	FROM  dbo.ScheduleHistory as SH INNER JOIN
				   dbo.Schedule AS S ON SH.ScheduleID = S.ScheduleID
	WHERE (S.TypeFullName = 'Incite.Modules.MetalQuick.ScheduledTasks, Incite.MetalQuick')
	ORDER BY SH.StartDate DESC
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Scheduler Jobs WAY Too Frequently - massive performance dragScheduler Jobs WAY Too Frequently - massive performance drag


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out