Storing of LogFiles

Post your support requests/solutions for phpJobScheduler [website]
JanBerends

Storing of LogFiles

Postby JanBerends » Tue Sep 06, 2011 6:30 am

Hello,

I have use phpJobScheduler for some time now, and recently I added an extra script which had the same execution time of a script already scheduled. The script was executed on the scheduled time, but I never got a logfile of the script. After some digging in the source of phpJobScheduler I found the the primary key of the logfiles in the database is the unix formated date-time. Since both scripts complete within the same second, the logfile of the last completed run was not stored due to a duplicate key.
I made minor changes to the script by adding a extra column to the logfiles database tabel, this new column holds the previous value of id (the unix date-time), and the primary key (id) is now an auto-increment integer. The functions.php script was changed accordingly. Now my log's are saved even if they finish within the same second.
Is it an idea to make this change to the next release?

Regards,

Jan Berends.

davidgwalker
MODS thats what I do that is! But definately NO mod music! It has to be ROCK!
Posts: 1807
Joined: Mon Oct 25, 2004 8:20 pm
Location: Huddersfield, UK
Contact:

Re: Storing of LogFiles

Postby davidgwalker » Tue Sep 06, 2011 7:18 am

Hello Jan,

Many thanks for taking the time to find and then highlight this issue.

I have added it to the list for jobs to be done next release.

All the best, much appreciated

Dave

JanBerends

Re: Storing of LogFiles

Postby JanBerends » Tue Sep 06, 2011 7:34 am

Dave,

I'm looking forward to the next release. Glad I could help.

Jan.

davidgwalker
MODS thats what I do that is! But definately NO mod music! It has to be ROCK!
Posts: 1807
Joined: Mon Oct 25, 2004 8:20 pm
Location: Huddersfield, UK
Contact:

Re: Storing of LogFiles

Postby davidgwalker » Sun Apr 22, 2012 1:26 pm

New version now out:
viewtopic.php?f=1&t=1117


Return to “phpJobScheduler [forum]”

Who is online

Users browsing this forum: No registered users and 7 guests