Hello Josef,
I have a 5.2M1 wiki which is 2 weeks old. I've set
xwiki.plugin.activitystream.daystokeepevents=1 in xwiki.cfg as you did,
then restarted my wiki. A job was created automatically. I left the default
job parameters which were created by XWiki.
Before triggering manually the job, I queried the database (Postgres):
xwiki=# select count(*) from activitystream_events;
count
-------
1800
(1 row)
After triggering the job, I re-run the same query:
xwiki=# select count(*) from activitystream_events;
count
-------
791
(1 row)
Also in the AS now I only have entries from today and yesterday. Checked
also Main.WebHome but also my AS from my profile. They both look the same.
Since I am not an expert here, maybe your cron expression is not correct or
other parameter. I'd say you could try deleting your job and let XWiki
create it automatically for you, see if it works this way.
Regards,
Sorin B.
On Fri, Aug 23, 2013 at 1:03 PM, Haimerl, Josef
<Josef.Haimerl(a)de-gmbh.com>wrote;wrote:
Hi
I want to run the ActivityStreamCleanerJob
(com/xpn/xwiki/plugin/activitystream/impl/ActivityStreamCleanerJob.java)
within the Job Scheduler Application. I knew I had it running a while ago
and it worked, but despite the same configuration it doesn't anymore. When
I take a look at the database table activitystream_events nothing seems to
be deleted.
What I did:
* installed Scheduler Job (as admin) as mentioned on the extension
site
* created a new Job with following parameters
o Job Name: ActivityStreamCleaner
o Job Class:
com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamCleanerJob
o Status: Normal
o Job Script:
o Cron Expression: 0 29 11 * * ?
o Job execution context user: XWiki.Admin
o Job execution context lang: en
o Job execution context database: xwiki
* checked if scheduler and activitystream plugins are loaded in
xwiki.cfg
* set xwiki.plugin.activitystream.daystokeepevents=1 in xwiki.cfg
* unscheduled and scheduled the job again
* triggered it
* tested if other jobs work in general: OK
* tested on different xwiki instances
So do you have any advice, have I something missed out?
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users