You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-11-28 12:14:31

setival
Member
Registered: 2008-09-16
Posts: 13

mass_ocs_import plugin "Delete processes after" option not working

Hi everyone,
I've configured the mass_ocs_import plugin and it's working fine, but the old processes doesn't disappear. I have 4+ days old processes when I configured it to delete the processes after 2hours. As there are so many processes, the webpage tries soooooooo long to load.
Can you please tell me what should I do to make it work fine, or which part of the code runs the processes cleaning so I can debug it and see what's wrong ?
Thank you very much.

Offline

#2 2008-11-28 20:26:22

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: mass_ocs_import plugin "Delete processes after" option not working

Have you configured the both cleaning options ?

Clean is done by the internal cron. Have you some activity on GLPI during this periode ?

Check the file/_log/cron.log

Also try to put GLPI in debug mode.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2008-12-01 11:29:09

setival
Member
Registered: 2008-09-16
Posts: 13

Re: mass_ocs_import plugin "Delete processes after" option not working

There was no activity during this period, but when I resume normal operations, it takes a while to launch the cron and clean the DB.
As I'm currently debugging the plugin and doing some tests, and I wanted the cleaning to be performed automatically, no matter if there's activity or not in the GLPI webpage.
I've tried to include the front/cron.php file in the main page of the plugin, but it doesn't seem to work.
I'll try to make a system's cron task invoking this cron to see if it works.
Thank you very much again wink

Offline

#4 2008-12-01 12:03:13

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: mass_ocs_import plugin "Delete processes after" option not working

Yes, using the system cron is the solution.
This is described in the documentation.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2008-12-02 11:44:39

setival
Member
Registered: 2008-09-16
Posts: 13

Re: mass_ocs_import plugin "Delete processes after" option not working

Ok, it's there. I looked for it before but didn't found.
Thank you again big_smile
Nice job !

Offline

#6 2008-12-02 13:08:55

setival
Member
Registered: 2008-09-16
Posts: 13

Re: mass_ocs_import plugin "Delete processes after" option not working

I've installed the cron task and it's working since it's cleaning sessions, launching de dbreplicate and ocsng tasks, but there's no task cleaning the plugin's old processes...
How can I add it at cron launch ?

Offline

Board footer

Powered by FluxBB