I have also set oscomponent.noexitcode=256.
If you create a simple test job you can test before making the change and after to confirm things work as expected.
This is an example for CA Workload Automation ESP Edition:
LINUX_JOB NIXCMD
AGENT %USER1
CMDNAME <valid shell>
USER <valid user>
ARGS -c 'exit %USER1'
RUN ANYDAY
ENDJOB
You will need to provide a <valid shell> and a <valid user>.
Trigger event USER1 is agent, USER2 is exit code.
------------------------------
Senior Systems Analyst
UPS
------------------------------
Original Message:
Sent: 02-24-2020 02:30 PM
From: Isaac Toro Vera
Subject: Cant complete application
Yes, it exits with 255
Original Message:
Sent: 02-24-2020 01:59 PM
From: Rick Romanowski
Subject: Cant complete application
Prior to making any changes I would recommend what the script/program exited with.
If it exits with a 255 or a -1 the job will remain in the Processing/Executing state.
Are you able to determine how the script/program exited?
Does the program log it's exit status?
------------------------------
Senior Systems Analyst
UPS
Original Message:
Sent: 02-24-2020 01:37 PM
From: Isaac Toro Vera
Subject: Cant complete application
Hi Rick,
Thanks a lot for your response. In the agentparm.txt file that property has the 255 value. Should i change it? which value?
Thanks again
Original Message:
Sent: 02-24-2020 12:08 PM
From: Rick Romanowski
Subject: Cant complete application
You should not need to manually complete jobs/applications.
Can you check the agentparm.txt file on the server and note the setting of oscompoment.noexitcode.
oscomponent.noexitcode
Specifies the exit code that tells the agent not to send a completion code to the scheduling manager host.
Limits: 1-255
Default: 255 for UNIX, 127 for Windows
If the oscomponent.noexitcode is not present in the agentparm.txt then the default value of 255 is used.
If a script exits with 255 or -1 the job will not be marked complete.
Also check the transmitter.log to see what is sent/not sent from agent.
------------------------------
Senior Systems Analyst
UPS
Original Message:
Sent: 02-24-2020 11:46 AM
From: Isaac Toro Vera
Subject: Cant complete application
Hi everyone,
I have many application in Processing state but all jobs are completed. I tried to complete the applications manually but i got an error which said "is not an active application managed by the Manager."
How could I complete them?. I have a CAWA DE 12.1 in Linux Red Hat 7 and Oracle DB.
Thanks,
Isaac