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

Once-only executable

rbespalovnc
Participant
0 Likes
1,178

A Job definition has a property "Once-only executable" ( JobModel.singleExecutable )

Is it possible to use this property to force Cronjobs derived from this definition to run one after another in a queue?

Some context: datahub sends some data to hybris. For each data import a new cronjob of type ImpEx-Import is created. But they are not always executed in the same order as they were created. I wondered if there is a way to enforce that.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Have you considered a composite cronjob which includes in itself several cronjobs to be run sequentially?

rbespalovnc
Participant
0 Likes

I don't think that helps me. Some context: datahub sends some data to hybris. For each data import a new cronjob of type ImpEx-Import is created. But they are not always executed in the same order as they were created. I wondered if there is a way to enforce that.

Former Member
0 Likes

You cannot control the execution order of independent tasks once they are in the tasks table where all background processes ended up. Thus you will need to customize the way of what is being executed on Hybris side once the DH initiates publishing.

bbardakov
Discoverer
0 Likes

Ruslan, you may fire an event within the cronjob to stnother job