[SOLVED] Questions about pending auto close

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

[SOLVED] Questions about pending auto close

Post by HervE »

Hello,

I'm testing state "pending auto close" (+ or - doesn't matter) today.

At a moment it worked, and I can see the following in ticket history:
StateUpdate Old: "new" New: "pending auto close-" - root (Admin OTRS) 01/25/2011 14:00:09
SetPendingTime Updated: 2011-01-25 14:02 - root (Admin OTRS) 01/25/2011 14:00:09
StateUpdate Old: "pending auto close-" New: "closed unsuccessful" - root (Admin OTRS) 01/25/2011 14:45:02


Question: Why is the state updated to closed written at 14:45, whereas it was supposed to be closed at 14:02?

Now it doesn't work anymore, and I can see the following in ticket history:
StateUpdate Old: "new" New: "pending auto close+" - root (Admin OTRS) 01/25/2011 15:24:47
SetPendingTime Updated: 2011-01-25 15:25 - root (Admin OTRS) 01/25/2011 15:24:47

...but nothing more.

Question: Why does the ticket stay pending, although scheduled time has passed?

Regards,
HervE
Last edited by HervE on 22 Mar 2011, 19:14, edited 3 times in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Questions about pending auto close

Post by HervE »

HervE wrote:I can see the following in ticket history:
StateUpdate Old: "new" New: "pending auto close+" - root (Admin OTRS) 01/25/2011 15:24:47
SetPendingTime Updated: 2011-01-25 15:25 - root (Admin OTRS) 01/25/2011 15:24:47

...but nothing more.

Question: Why does the ticket stay pending, although scheduled time has passed?
Actually it now shows:
StateUpdate Old: "new" New: "pending auto close+" - root (Admin OTRS) 01/25/2011 15:24:47
SetPendingTime Updated: 2011-01-25 15:25 - root (Admin OTRS) 01/25/2011 15:24:47
StateUpdate Old: "pending auto close+" New: "closed successful" - root (Admin OTRS) 01/25/2011 16:45:01


So I've got only one question, the first one:
Why is the state updated to 'closed' later than expected?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Questions about pending auto close

Post by jojo »

the cron job for this is only running every 2 hours
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Questions about pending auto close

Post by HervE »

OK, that explains 14:45 then 16:45. It is configured this way in var\cron\pending_jobs.dist. Thanks.

(edited) Actually, I've got a question: Is it the actual configuration in OTRS\var\cron\pending_jobs.dist, or in CRONw\crontab.txt? Because I can find it in both.
Same question goes for postmaster_mailbox.dist by the way.

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Questions about pending auto close

Post by HervE »

HervE wrote:Is it the actual configuration in OTRS\var\cron\pending_jobs.dist, or in CRONw\crontab.txt? Because I can find it in both.
Same question goes for postmaster_mailbox.dist by the way.
I've got my answer: CRONw\crontab.txt is re-created each time you restart cron service.
So OTRS\var\cron\ is the place to do modifications.

I thank me :D
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked