cancel
Showing results for 
Search instead for 
Did you mean: 

Use Hana client.exec once more after response is sent, node.js

0 Kudos
191

Hey guys! I have a small thing and I am very curious how I can perform this.

Basically, all I want is to keep a request running or start it, which ever is possible, independently from the response sending.

I am using Hana hdb.createClient and client.exec to perform requests. Let's say that besides other logic in the service, I have this request that it will take 20 seconds, but it doesn't return anything so I do not need it to return it as a response, therefore the service is not supposed to wait for it before sending a response. Basically, I want to do one of the following:

1. Start the process (calling without await) and send the response from some other logic.

2. Start the process after sending the response.

In the process I need to run, I am using some data I am already getting throughout the service.

Both options fails because after sending the response, the client is not existing anymore. Does anyone have any idea how I can achieve this?

Accepted Solutions (0)

Answers (0)