Timeout for Packages running via commandline

More
1 year 2 weeks ago #25612 by admin
The ID is always fist parameter, that is the only rule.
You can combine multiple parameters, in any order

Both will work
aetlcl.exe 956 {logid}  hardtimeout=100 retries=2  
aetlcl.exe 956 {logid}  retries=2   hardtimeout=100

 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
11 months 2 weeks ago #25792 by prashant
question, is below correct ? see the part in bold



const fs = require("fs");
const { spawn } = require("child_process");
try {
  const WORKING_DIRECTORY = "C:\\Program Files\\DB Software Laboratory\\Advanced ETL Processor Enterprise\\";
  const fileToExecute = "C:\\Program Files\\DB Software Laboratory\\Advanced ETL Processor Enterprise\\aetlcl.exe";
  const objectId = 7736;
  const parameters = [objectId, logId, hardtimeout=100,retries=2 ];
 
  logger.info(parameters);
 
  spawn(fileToExecute, parameters, { cwd: WORKING_DIRECTORY, detached: true });
 
  return 200;
} catch (err) {
  logger.error(`Caught an error: ${err.message ? err.message : err}`);
  return 500; // Any error caught here results in a 500 status
}
 

Please Log in or Create an account to join the conversation.

More
11 months 2 weeks ago #25795 by Peter.Jonson
Try this one instead:

 const parameters = [ objectId,  logId,  'hardtimeout=100','retries=2']
 

Peter Jonson
ETL Developer
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save