AnsweredAssumed Answered

scheduler settings

Question asked by shay on Oct 17, 2007
Hi,
i configured a new job in the  scheduled-jobs-context.xml file:
<bean id="timJob" class="org.alfresco.util.TriggerBean">
        <property name="jobDetail">
            <bean id="timJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                <property name="jobClass">
                    <value>com.mobival.alfresco.web.bean.tim.TimPublishSchedulerJob</value>
                </property>
                <property name="jobDataAsMap">
                    <map>
                       <entry key="timPublishJob">
                           <ref bean="timPublishJob" />
                       </entry>
                    </map>
                </property>
            </bean>
        </property>
        <property name="scheduler">
            <ref bean="schedulerFactory"/>
        </property>
        <property name="startDelayMinutes">
            <value>1</value>
        </property>
        <property name="repeatIntervalMinutes">
            <value>1</value>
        </property>
    </bean>

it works fine but i want to run only one instance of job at a time.
how can i set the schedule to run my job only if no other instance of it already running?

Thanks in advacne,
Shay.

Outcomes