Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Changing delay between 2 executions of an asynchronous task

Hello,

I developped an asynchronous task that will be run every day.
To do that, I declared a property in the plugin descriptor :

<asynchronousTask taskId="myTaskID">
         <extensionService componentId="componentID" implementationClass="MyTask">
               <prerequisites>
                        <configurationProperties>
                                    <configurationProperty accessPolicy="OPEN" default="86400" description="myDescription" displayableName="MyDisplayName" name="myTaskID.fixedDelay" required="true" type="LONG" updatePolicy="NO_RESTART_REQUIRED">
                 .....

When I install the plugin, I have to wait a whole day to know if it's working or not. I tried changing the property to 60 and wait a bit, but the task didn't run.

Is there a way to change the value of this property and appy this new delay in the scheduler without having to wait the planned execution of this task ?

Regards,
Sylvain

0 votes



One answer

Permanent link
Hi Sylvain,

On the Application > Configuration > Advanced Properties page you should be able to find your property and change its value. Since you have it set to "no_restart_required" it should kick in right away. If that's what you already tried then I don't know what to tell you.

0 votes

Comments

Hello,


This is exactly what I've done. I changed this value to 30 and the task were not executed after waiting a few minutes. I think the property change is taken into account but, as the task is schedule for the day after, it will wait for the next execution before changing the delay.

Also, I'm pretty sure this property is well interpreted as I set a low value in the plugin.xml in my dev environment and see the task running.

Regards,
Sylvain

Hi Sylvain,

yes, based on my experience, that is how I expect it to work. After the next execution, the scheduler will ask the task for the delay and use the new value for scheduling the next execution.

I wrote about custom tasks devel in: http://jorgediazblog.wordpress.com/2013/06/28/rtc-custom-scheduled-async-task-example-explained/

Regards,

Jorge.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 6,121

Question asked: Nov 29 '12, 8:07 a.m.

Question was seen: 5,031 times

Last updated: Jul 02 '13, 9:05 a.m.

Confirmation Cancel Confirm