on 06-04-2016 8:58 PM
Hello,
is there a opportunity to update the max runtime of a scheduled job in NWA?
I want to increase the time to more then two hours.
Can I increae the value only for one job or is it a global value (for all jobs)?
At other websites I have read various information about that. You can change the value in Backend using TCode SM36/SM37 but currently, my system has no abap stack, only java.
So there is the NWA only.
Thanks in advance
Hi Denis.
is there a opportunity to update the max runtime of a scheduled job in NWA?
I want to increase the time to more then two hours.
Can I increae the value only for one job or is it a global value (for all jobs)?
There no time limitation in SAP Background work process.
Kindly refer the SAP help portal link
Background Work Processes Explained - Background Processing - SAP Library
There is time limit in Dialog workprocess. by default set 10 min(600 sec). Parameter name - rdisp/max_wprun_time
Regards
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for your answer.
Really no timeout? Please refer to my other question i posted in SCN:
http://scn.sap.com/message/16758988#16758988
There I developed a Job using a Timeout with "Thread.Sleep".
Using a sleeptime of 1000 seconds (16,67 minutes), there is no error.
Using a sleeptime of 2000 seconds (33,33 minutes), there is an error.
It is a simple custom Job written in JAVA (IDE: NetWeaver Developer Studio, deployed as EJB/EAR) using source code:
/**
* Message-Driven Bean implementation class for: HelloJob
*
*/
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "JobDefinition=\'HelloJob\' AND ApplicationName=\'sample.com/utils~job~hellojob~ear\'") })
public class HelloJob extends MDBJobImplementation {
/**
* Default constructor.
*/
public HelloJob() {
// TODO Auto-generated constructor stub
}
@Override
public void onJob(JobContext jobContext) throws Exception {
Logger log = jobContext.getLogger();
JobParameter jp = jobContext.getJobParameter("TSleep");
int time = Integer.valueOf(jp.toString());
log.info("Hello Job 01 exec at " + (new Date()));
Thread.sleep(time * 1000);
log.info("Hello Job 02 exec at " + (new Date()));
}
}
Using 2000 second the following error appears:
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.