Scheduling the ProcessExpiredPromotions job
You can use the ProcessExpiredPromotions job to report, delete, archive, or deactivate expired promotions automatically. This job can potentially improve performance of the promotion engine since deleted or archived promotions do not display in the main list of promotions on Management Center.
It is recommended that you schedule this job in the staging environment and use the stageprop utility to propagate the changes to the production environment.
About this task
Alternatively, you can run the
ProcessExpiredPromotions command through a URL if you are logged in to your store
with Site Administrator
access.
http://hostname/webapp/wcs/stores/servlet/en/ProcessExpiredPromotions?action=anAction&days=x
Note: If
the scheduler job deletes an expired promotion that was modified in a workspace task, then you might
notice the following behavior:
- When the workspace task is approved, if the promotion name was not modified in the workspace task, then a new promotion is created and 11 - 13 numbers are appended to the promotion name. If the entire name becomes too long, then the numbers are preserved and the promotion name might be truncated. These numbers are appended to the name during deletion to reduce the chances of collisions with other promotion names.
Procedure
- Open the Administration Console, and select Site on the Administration Console Site/Store Selection page.
-
Select your store and then click OK.
The ProcessExpiredPromotions job modifies the promotions for the extended sites store that you chose only. If you want to use the ProcessExpiredPromotions job to handle promotions in the storefront asset store, then you need to select the asset store and create another scheduler job.
- Click . A list of jobs that are scheduled to run is displayed.
-
Add the ProcessExpiredPromotions job.