cancel
Showing results for 
Search instead for 
Did you mean: 

Create Job to cleanup a KM folder

mario_bisonti2
Participant
0 Kudos

Hallo.

I would like to create a KM Job to cleanup a folder on my repository.

The path is: root > z_documenti > Temp > Prova1

I see a job "CleanJobTask" under System Administration->SystemConfiguration->ContentManagement->GlobalServices->SchedulerTascks but it seemes doen't work.

I set this for the "CleanJobTask":

TimeTable:05MinutesAfterFullHour

CleanupDocuments:X

Folder RIDs to cleanup: /root/z_documenti/Temp/Prova1

but it doesn't clean nothing.

Where is the mistake?

Could you help me?

Thanks.

Mario

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Mario,

1.) If you have a cluster with more than one node, choose one CM system where the job should be running on (not needed in a single node installation).

2.) Activate "Task status", otherwise the job will not do anything.

With these two things in mind (and configured) it should do the trick (works for me at least).

3.) Keep in mind that this is some (as far as I have seen) undocumented feature which is not delivered with EP7.3 (and was delivered with 7.0 in some (undocumented) CAF scenario in the background). So in the long term it might make sense to develop your own task implementation (which, for a KM developer, is more or less straight forward; in addition, individual needs like logging, archiving, adding individual conditions when to delete... could be implemented that way).

Hope it helps

Detlev

mario_bisonti2
Participant
0 Kudos

Thanks a lot !

You are right, documentation isn't so clear for KM jobs..

With the flag "Task status" it started and it deleted the documents, not the folder.

After I tried to launch it more times but it doesn't start anymore!!!!

I don't understand...where could I check the execution of the job?

Thanks!!!

Mario

Answers (0)