...
Job starts once in 24 hours by default (configured parameter PERSON_TO_PREPERSON_MERGE_REQUEST_SCHEDULE).
After starting it gets value from global parameter PERSON_TO_PREPERSON_MERGE_REQUEST_TTLEXPIRATION.
Select all entries from mpi.merge_person_preperson_request with status=NEW:
If inserted_at > current_datetime() - PERSON_TO_PREPERSON_MERGE_REQUEST_TTLEXPIRATION. Then skip the record
If inserted_at =< current_datetime() - PERSON_TO_PREPERSON_MERGE_REQUEST_TTLEXPIRATION. Then update entry:
set status = EXPIRED
set updated_at = current_datetime()
set updated_by = system_user()