juanasecas
juanasecas

Reputation: 51

Why my cron job runs every 10 seconds?

Environment: Liferay 6.1

In my liferay-portlet.xml I have this cron job:

<scheduler-entry>
         <scheduler-event-listener-class>com.shorex.b2b.web.billing.IndexJob</scheduler-event-listener-class>
         <trigger>
            <cron>
                <cron-trigger-value>0 0 6 1/1 * ? *</cron-trigger-value>
            </cron> 
        </trigger>
    </scheduler-entry>

This expresion "0 0 6 1/1 * ? *" means that there is a process which will be execute once every day at 6:00:00.

The problem is that this process is been executed since 6:00:00 every 10 seconds. that is, at 6:00:00, 6:00:10, 6:00:20, 6:00:30...

Could anyone tell me why is it happening?

Upvotes: 0

Views: 1350

Answers (1)

Bryan Devaney
Bryan Devaney

Reputation: 188

<cron-trigger-value>0 0 6 ? * *</cron-trigger-value>

thats every day at 6.

Upvotes: 1

Related Questions