Bug 41851: (QA follow-up) Log completion before exiting

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Emily Lamancusa 2026-04-10 16:07:10 -04:00 committed by Lucas Gass
parent 18ffe25210
commit 29caec496b
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 2 deletions

View File

@ -146,6 +146,8 @@ foreach my $response (@downloaded_responses) {
process_ordrsp($response);
}
cronlogaction( { action => 'End', info => "COMPLETED" } );
if ( close $pid_handle ) {
unlink $pidfile;
exit 0;
@ -154,8 +156,6 @@ if ( close $pid_handle ) {
exit 1;
}
cronlogaction( { action => 'End', info => "COMPLETED" } );
sub check_pidfile {
# sysopen my $fh, $pidfile, O_EXCL | O_RDWR or log_exit "$0 already running"