| |||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
(#1)
|
(#2)
|
| Operations Manager Posts: 7,372 Join Date: Jan 2006 Location: England, UK |
10-04-2008, 08:00 AM
Hi JRP2, Yes, the fetch interval is hard coded and cannot be changed from 10 minutes without modifying the code. -------------------------------------------------------------------
|
| | |
(#3)
|
| Senior Member Posts: 7,547 Join Date: Jun 2005 Location: Cumbria, UK |
10-04-2008, 08:49 AM
That is incorrect Jamie. It is defined in database table swcron. Simply look for the one with name "parser" and change cminute to what you want.
Click here for Kayako Software Development My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako |
| | |
(#4)
|
| Operations Manager Posts: 7,372 Join Date: Jan 2006 Location: England, UK |
10-04-2008, 09:13 AM
For all intents and purposes, it is hardcoded in that you cannot modify it via the interface; but you are right that it can be changed in the database.
-------------------------------------------------------------------
|
| | |
(#5)
|
(#6)
|
| New Member Posts: 5 Join Date: Apr 2008 | My resolution -
13-04-2008, 08:44 PM
Just to follow up. I did the following, and got it working pretty good (good enough):
With these changes I now get email polling every 3-12 minutes. Normally, it will be 3-6, sometimes 9, and rarely 12. One could probably make other changes like using odd, perhaps prime, numbers in the interval settings for each function to get it to minimize conflicts. I will likely put in a bug on the overall problem I overcame. This could definitely be done better! Gotta say though, this was the only real problem I have run into while implementing Kayako, and it wasn't all that painful. Thanks again to Crag and Jamie for their prompt replies and useful pointers! Disclaimers: If you are going to make changes to your own system, be very careful. This is not configurable from the GUi for a reason. I would only make these changes if you know what you are doing, understand the problem, your email system is reliable, close (on same network in my case) and your email volume is reasonably low. I am not a lawyer, your mileage may vary, and do not taunt happy fun ball! ![]() |
| | |
(#7)
|
| New Member Posts: 2 Join Date: Apr 2008 |
29-04-2008, 12:53 AM
It appears in my installation that the tasks run in more of a round-robin manner. When the cron job is fired off, it doesn't necessarily run the task that you would expect, and sometimes runs tasks that are not yet scheduled to run. Am I missing something here? If I schedule a cron job for 10 minute intervals, I would expect my email to be POP'ed every 10 minutes. I believe I am seeing other tasks executing more often than they should, and that email is not checked more than once every few iterations. |
| | |
(#8)
|
| Senior Member Posts: 7,547 Join Date: Jun 2005 Location: Cumbria, UK |
29-04-2008, 09:45 AM
Internal Crons / Scheduled Tasks are also fired when staff login to the staff / admin control panels.
Click here for Kayako Software Development My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako |
| | |
(#9)
|
| New Member Posts: 5 Join Date: Apr 2008 | Suggestions on Cron for fetching mail -
29-04-2008, 05:33 PM
Quote:
I definitely agree with Doug that what you expect to happen, and what actually does happen, are rarely the same. I have observed this stuff fairly closely, and constantly seeing new and different things happening. It is rather bizarre at times. What I have found, and my advice to anyone baffled by all this: - Run your cron trigger app (wget under cron, or whatever) a bit more frequently than you think you should have to. Using defaults (no messing with the swcron table), I would run it every 3-4 minutes rather than every ten. That will likely get you a fetch every ten (mostly), and running the other tasks (ticket followup, hourly cleanup, etc.) during the other triggers. Do this, and you will barely even notice the oddities. - Be patient! Once you have started the more frequent cron polls, wait about 90 minutes before you come to any conclusions. Things smooth out after then, after it has gone through a full 1 hour cycle of processes and caught up on backlogged tasks. Even then it won't be precisely what you expect, but it will be pretty close and likely good enough. - DO NOT RELY ON SYSTEM ACTIVITY TO TRIGGER IT! Use a cron job to tickle the system for sure. If you don't use a cron trigger, and there is no one logged in overnight, it could take up a long time to get the first fetch in the morning as the system is trying to catch up on all the cleanup tasks it missed overnight. Bottom line, this is one really bizarre aspect of Kayako. I really think the Kayako team should revisit this code and see how it could be done better. Though I understand some (not all) of the logic they are using, it is not very apparent what to expect and has some nasty side effects (very long intervals between fetches at times). Hope this helps, JP | |
| | |
![]() |
| Tags |
| fetch, frequency, imap, increase |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free loginshare imap | snuffop | LoginShare Modules | 6 | 21-08-2009 10:08 AM |
| Unable to Compile PHP with IMAP support | Aaron | Technical Chat | 2 | 06-09-2007 07:31 PM |