cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Abort CronJob button not becoming active in Backoffice

646

Hello, experts!

I'm migrating from Hybris 5.4 to Commerce Cloud 2205 and I have to make a CronJob abortable.

I already tried to override isAbortable method and put abortable property in the job bean, but none of them worked to me in order to activate the Abort CronJob button in Backoffice.

Any suggestions? Thank you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

mansurarisoy
Contributor

You can debug canPerform method of AbortCronJobAction class under package de.hybris.platform.platformbackoffice.actions.cronjob which is located in platformbackoffice_bof.jar.

According to this method, to perform "Abort CronJob" action

  • Your user should have necessary rights (check rights on CronJob type) to execute CronJob
  • CronJob should not be newly created
  • CronJob should be abortable (it should be done by isAbortable() method of Job's class as you said in your question)
  • CronJob should be running (status should be RUNNING or RUNNINGRESTART)