1057255 - Jobs remain in status 'ready'

Symptom
A job remains in the 'ready' status for a long time.


Other Terms
ready, delay


Reason and Prerequisites

Background information:
If you work in the dialog, your dialog session is running on one (usually of several) application servers. The dialog application that you use is executed only from this application server.
For example, if you choose 'Save' in your dialog screen, the system sends a dialog request to a free dialog work process on this server (and no other server). The dialog work process that contains the request then executes the ABAP statements that are associated with this button (for example, a consistency check for the data that was entered and then saving the data in the database).
If no dialog work process is free on the server, the system places your dialog request in a queue. This is still the case, even if there are free dialog work processes on other application servers.
Since the system usually processes a dialog request in fractions of a second, it is not long until a work process becomes free on the server again and it is the turn of your dialog request.

You do not want this behavior in the background processing. It may even be fatal. The simple reason for this is that the runtime of background jobs is often many minutes or even hours.
If an application wants to start a background job (without a target server), and if no background work process is free on the server on which this application runs, the user will of course want to start the background job on any of the other servers that have free background work processes.
In technical terms, the background processing may be as follows:
1.  It must be able to  send background requests across the entire system and not just on the local server.
2.   In addition, before the background request is sent to a certain server, the background processing must be sure that there is a free background work process on this server. A request that has been sent once can no longer be redirected to another server.

In the past, there have been problems (particularly with point 2):
For example:
- Two applications want to start a background job on the same server at the same time.
- there is still a free background work process on the server.
- Since both applications want to start the job at the same time, both applications see that there is a free background work process on the server and they each send a background request to the server.
The system can start only one background job. The other background request remains in the queue on this server (in the same way as the dialog processing). The background job that belongs to this waiting request only starts when a background work process is again free on this server. This may take a very long time. The background remains in the status 'ready' for this time.

Therefore, a background job has the status 'ready' in the time between when you send the background request and when the relevant background job starts. This should usually only take fractions of a second, and, at the most, a few seconds.

The problem demonstrated by the above example was eliminated in 2003. However, due to various options for starting a background job (immediate start, time-based start, event start), in theory, a background job may hang with the status 'ready' in a certain scenario. In this scenario, various events start several jobs at the same time, or one event starts several jobs with different event parameters at the same time.


Solution
We now deliver a solution for the scenario that is mentioned above. This means that, even in this scenario, background jobs can no longer hang in the status 'ready'.
Implement the advance correction or import the relevant Support Package.
After you implement the solution, the event jobs may experience a slight delay if you start many event jobs at the same time. That is essential because, in order to exclude the problem that is mentioned above, you must serialize the job starts.
In any case, you can significantly reduce the average delay. To do this, set the profile parameter rdisp/btctime to 30 (the default value is 60) on all servers.
However, if you want to retain the old behavior, you can deactivate the corrections. To do this, use transaction SE16 to insert the following entry in the table BTCOPTIONS:

BTCOPTION = NEW_EVTSTART
VALUE1    = OFF
VALUE2    = <any comment>



Header Data

Released On 09.12.2008 12:12:41
Release Status Released for Customer
Component BC-CCM-BTC-RUN Runtime Environment for Background Processing
Priority Correction with low priority
Category Program error

5 comments:

Stepherd said...

Really nice thing you had posted here. And i hope this strategies will help the people for hiring process. Thank you and also i am expecting much more post from you. So please keep update like this.

Hr Consultancy in Chennai

Anonymous said...

JEE Main is one of the biggest entrance exams that is held every year. The JEE Main 2019 Entrance Examination is

conducted by the CBSE. This year the CBSE is going to conduct the JEE Main 2019 on April 8th, 2019.

The CBSE has finally published the Date-sheet of CBSE 10th 2018 Board Exam. The Exam will start from 5th March 2018. Here is the complete list of CBSE Results 2018

The RRB has announced its Official Advertisement 2018 for Railway Junior Engineer.

The Recruitment Board is offering approx. 5620 Vacancies for RRB JE. It is a great

opportunity for those who are interested in the Railway Jobs.

DMRC (Delhi Metro Rail Corporation) has released the notification for the various

postsfor Assistant Manager in various fields, Office Assistant, Account Assistant, Stenographer and much more. The Department is providing over 1800 posts

for the aspiring candidates. The online registration for the recruitment starts from 27th Jan 2018 to 26th Feb 2018 (23:59 pm).Check Here for complete details

regarding the DMRC Recruitment 2018.

Recently the RRB has declared the vacancies for the Railway Assistant Station Master

(ASM). An approx. of 50,000 vacancies, positions are filled this year. full detailed information click here rrb asm recruitment 2018

The RRB Recruitment Department is planning to release the dates for RRB Recruitment 2018 for the year 2018-19 in the month of January. The examination will be

conducted after one or two months after the release of the notification. The RRB NTPC 2018 will recruit the candidates for various vacant posts in Technical

and Non-Technical Categories.

DMRC (Delhi Metro Rail Corporation) has released the notification for the various

postsfor Assistant Manager in various fields, Office Assistant, Account Assistant, Stenographer and much more. The Department is providing over 1800 posts

for the aspiring candidates. The online registration for the recruitment starts from 27th Jan 2018 to 26th Feb 2018 (23:59 pm).Check Here for complete details

regarding the DMRC Recruitment

The RRB has announced its Official Advertisement 2018 for Railway Junior Engineer.

The Recruitment Board is offering approx. 5620 Vacancies for RRB JE Recruitment

2018
. It is a great opportunity for those who are interested in the Railway Jobs.

Anurag Srivastava said...

Your blog is very interesting. Thanks for sharing nice information... Sarkari result provides PSU jobs information as well. Government giving enough opportunities to make a good and bright future in India

Anurag Srivastava said...

Your blog is very interesting. Thanks for sharing nice information... Sarkari result provides PSU jobs information as well. Government giving enough opportunities to make a good and bright future in India

Annika said...

Wonderful Article.
Annika