Asynchronous job status update


I have the following use case:
The test stage in my project’s pipeline includes submitting tests to a remote cluster via a resource manager.
Those tests may run for several hours on the remote cluster. Since I cannot allow the runner to stay busy while waiting for the results of those tests, the job ends when the submission is complete successfully.
Then I have to manually access the results of the remote tests to see if the job succeeded and it’s not reflected on the status of the job.

I would like the status of the job to be updated asynchronously when the results of the remote tests are finished.

Is there a way to implement such a pipeline? Maybe some API call that could be called from the remote process and will update the status of the job?

We use on-premise version 13.5.1-ee.

Thanks in advance,