Run cronjob using impex

https://experts.hybris.com/questions/31033/cron-job-execution-impex.html

#% import de.hybris.platform.core.Registry
 #% import de.hybris.platform.servicelayer.cronjob.CronJobService
 #% CronJobService cronJobService = Registry.getApplicationContext().getBean("cronJobService")
 #% cronJobService.performCronJob(cronJobService.getCronJob("your-cronjob-code"),true)

Make sure that you run the cronjob with "Enable code execution" mode.

Comments

Popular Posts