Retail Point-of-Service Solutions (MOSC)

MOSC Banner

Scheduling atom in v18

edited Feb 3, 2020 4:03AM in Retail Point-of-Service Solutions (MOSC) 4 commentsAnswered

Need to schedule a atom to run in particular time. made changes in the xenv-tasks.xml(here specified the chain name and time interval) and in actions.properties(specified permitted time to run the atom), but the atom is running only when launching environment otherwise it is not.

<bean id="startrunningtrainingdbbackup" class="oracle.retail.xenvironment.scheduledtasks.ScheduledTaskProcessor">

    <property name="actionName" value="RESTORE_DB_TRAINING" />

    <property name="runOnRole" value="LEAD" />

  </bean>

<task:scheduled ref="startrunningtrainingdbbackup"

                    method="runTask"

                    fixed-rate="#{xenvConfig.getScheduledTaskFixedRateMillis('startrunningtrainingdbbackup', 600000)}"

                    initial-delay="#{xenvConfig.getScheduledTaskInitialDelayMillis('startrunningtrainingdbbackup', 120)}" />

  </task:scheduled-tasks>

actions.properties:

chain.RESTORE_DB_TRAINING.permitted_start_times=*,15:15,2

how i need to schedule to run at particular time.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center