[Question] prioritise pending jobs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Question] prioritise pending jobs

Lalit Dashora
Hi team,

I was wondering about the scenario where I need to prioritise a few
specific jobs.

Suppose on an instance there are 10K jobs in PENDING status. Based on the
server configuration the job pooler will pick and execute jobs. If I add
one more job (runTime < nowTimeStamp) with the requirement to execute ASAP.
But the job pooler picks this job after completing 10K jobs in FIFO manner.

is there any way to prioritise jobs?

Thanks and Regards,
Lalit Dashora
Reply | Threaded
Open this post in threaded view
|

Re: [Question] prioritise pending jobs

Deepak Dixit-5
Hi Lalit,

Have you explored the jobSandbox.priority field?

Please refer following task for more detail, it seems this will fulfill
your requirement
https://issues.apache.org/jira/browse/OFBIZ-10865


Thanks & Regards
--
Deepak Dixit
ofbiz.apache.org


On Wed, Oct 14, 2020 at 5:15 PM Lalit Dashora <
[hidden email]> wrote:

> Hi team,
>
> I was wondering about the scenario where I need to prioritise a few
> specific jobs.
>
> Suppose on an instance there are 10K jobs in PENDING status. Based on the
> server configuration the job pooler will pick and execute jobs. If I add
> one more job (runTime < nowTimeStamp) with the requirement to execute ASAP.
> But the job pooler picks this job after completing 10K jobs in FIFO manner.
>
> is there any way to prioritise jobs?
>
> Thanks and Regards,
> Lalit Dashora
>
Reply | Threaded
Open this post in threaded view
|

Re: [Question] prioritise pending jobs

Lalit Dashora
Thanks Deepak, it worked for me.

On Wed, Oct 14, 2020 at 6:09 PM Deepak Dixit <[hidden email]> wrote:

> Hi Lalit,
>
> Have you explored the jobSandbox.priority field?
>
> Please refer following task for more detail, it seems this will fulfill
> your requirement
> https://issues.apache.org/jira/browse/OFBIZ-10865
>
>
> Thanks & Regards
> --
> Deepak Dixit
> ofbiz.apache.org
>
>
> On Wed, Oct 14, 2020 at 5:15 PM Lalit Dashora <
> [hidden email]> wrote:
>
>> Hi team,
>>
>> I was wondering about the scenario where I need to prioritise a few
>> specific jobs.
>>
>> Suppose on an instance there are 10K jobs in PENDING status. Based on the
>> server configuration the job pooler will pick and execute jobs. If I add
>> one more job (runTime < nowTimeStamp) with the requirement to execute
>> ASAP.
>> But the job pooler picks this job after completing 10K jobs in FIFO
>> manner.
>>
>> is there any way to prioritise jobs?
>>
>> Thanks and Regards,
>> Lalit Dashora
>>
>

--
Kind Regards,
Lalit Dashora