Purge logs for various cronjobs
configure the job logs to be purged every 30 days
The logs for various cronjob need to be purged periodically, otherwise, the jobs take forever to load in backoffice. example - order export job.
Please configure the job logs to be purged every 30 days.
INSERT_UPDATE CronJob;code[unique=true];job(code);sessionUser(uid);sessionLanguage(isocode);active
;cronjobLogsCleanupJob;cleanUpLogsJobPerformable;admin;en;true
# Run the cronjobLogsCleanupJob on every last day of the month
INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression;active[default=true]
;cronjobLogsCleanupJob;0 0 0 L * ? *
<bean id="cleanUpLogsJobPerformable" parent="abstractGenericMaintenanceJobPerformable">
<property name="maintenanceCleanupStrategy">
<bean class="de.hybris.platform.jobs.maintenance.impl.CleanUpLogsStrategy">
<property name="modelService" ref="modelService"/>
<property name="flexibleSearchService" ref="flexibleSearchService"/>
</bean>
</property>
</bean>
Comments
Post a Comment