Generic Agent executes 2 hours after the expected time-frame

Moderator: crythias

Post Reply
giacomos
Znuny newbie
Posts: 12
Joined: 28 Sep 2022, 14:51
Znuny Version: 6.0.38
Real Name: Giacomo

Generic Agent executes 2 hours after the expected time-frame

Post by giacomos »

Hi, I have a Znuny application with two generic agents that are
configured to run in non-working days and hours.

The problem is that they executes 2 hours after the expected time
frames.

Non-working time frames are

1. first Generic Agent: Mon Tue Wed Thu Fri: all hours except 09:00-12:59 and 14:00-17:59
2. second Generic Agent: Sat - Sun: all hours

But currently (it's 15:22 CEST Europe/Rome and it's Tuesday) I get
the LAST RUNs like this:

1. 09/04/2024 15:20:02 -> it should have stopped at 13:55 (and I am sure it will keep running it until 15:55)
2. 08/04/2024 01:55:15 -> 2h after the expected run (which should have taken place on 07/04/2024 23:55)

Configuration of Generic Agent have Automatic Execution set like this:

Code: Select all

1. first GA
   SCHEDULE MINUTES: 00 05 10 .. 55 (every 5 minutes)
   SCHEDULE HOURS: 01 02 03 04 05 06 07 08 13 18 19 20 21 22 23 (all hours except working ones, like 09-12 and 14-17)
   SCHEDULE DAYS: Mon Tue Wed Thu Fri (5 working days)

2. second GA
   SCHEDULE MINUTES: 00 05 10 .. 55 (every 5 minutes)
   SCHEDULE HOURS: 00 .. 23 (all hours)
   SCHEDULE DAYS: Sat Sun (2 non-working days)
The server's operative system is Ubuntu set to timezone "Europe/Rome".

Znuny Version is 6.5.6.

In Admin -> System Configuration, I have the following relevant variables set:
- OTRSTimeZone: Europe/Rome
- UserDefaultTimeZone Europe/Rome

How can I investigate further this issue?
skullz
Znuny superhero
Posts: 649
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Generic Agent executes 2 hours after the expected time-frame

Post by skullz »

Generic agent is based on UTC..
E.g : GA is selected to run at 9.00am.
Since your is +2, its running at 11.00am (9 a.m utc)

You can check by

Code: Select all

bin/znuny.Console.pl Maint::Daemon::Summary
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
giacomos
Znuny newbie
Posts: 12
Joined: 28 Sep 2022, 14:51
Znuny Version: 6.0.38
Real Name: Giacomo

Re: Generic Agent executes 2 hours after the expected time-frame

Post by giacomos »

Thank you for your reply.
The fastest solution for our case is therefore to create another GA, which is a clone of the GA for monday-friday.
We will have two GA for monday-friday then: one for the CEST period, and the second for the CET period.
The downside of this is that they have to be set valid / invalid manually when the daylight saving time triggers.
Post Reply