11-03-2011 12:51 AM
I tested the same scenario which you had mentioned in the document. You can use the job management REST API and monitor the tag recurring. When you schdule the repetitive job the recurrence will be set to true. You can take a look at the output which i have pasted below for your reference.
We create new job id each time for every 2 minutes schduled.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><jobs size="19" uri="/api/space/job-management/jobs"><job key="98304" uri="/api/space/job-management/jobs/98304" href="/api/space/job-management/jobs/98304"><name>
When you get individual job id it would give you complete details with time in the recurrence tag
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><job uri="/api/space/job-management/jobs/196631"><id>19
You can't cancel the job which says the state with "SUCCESS" but what you can do is monitor the new job which is in "SCHDULED" state then the user will be able to cancel it will stop the job complete.
I hope this clears the understanding . Let me know if you have any more queries.
11-03-2011 11:58 PM
Thanks for reply. From job management rest API, I can get all jobs detail or elaborate detail of one job. But my requirement is different.
I dont have the id to get job detail . The ID of job which is created for recurrent execution.
How to get that?
Is it possible for you to have a discussion on call if you can share some number where I can explain you more.
11-04-2011 04:58 AM
Thank you very much for the call. Right now we dont have the functionality were we can corelate all the recurrence job id's for a schduled time to one parent job id. We always create new job id's for every new recurrence task so for now you can only monitor for status, task name and recurrence details to identify the job type and id.
I will raise an enhancement request to see if we can get this supported and update you accordingly.
11-04-2011 05:13 AM
Thanks for your time. We were looking for the work around as this enhancement implementation is going to take time.
I think I can use "Name" field of Job record to put some identification string e.g. "Bakcup configuration Files - device192.1681.1.".
In this way I will be able to corelare recurrence jobs with parent job.
Can you please tell me the way to set this "Name" field.