Quantcast
Viewing all articles
Browse latest Browse all 3316

Re: sleep in hana XS

Hello Florian,

 

The problem is that  I need  this sleep in code execution. I created a prototype library that allows user to run things in parallel using queue and xs jobs.

 

GitHub - antonsn/xsjs-queueing: HANA XSJS queueing and parallel processing

 

User can queue items to be processed in parallel, then I want user to be able to wait in code till while items are processed.

 

for example  :

 

    var groupid =$.util.createUuid();

 

   queue.add("test request", groupid);

   queue.add("test request", groupid);

 

   var results =queue.waitGroupToFinish(groupid);

 

Currently waitGroupToFinish pools queue and waits till items are finished. Pooling is ok in case it is not done very often, therefore I was thinking about having this delay.

 

This queuing mechanism works fine, but having this loop without delay unfortunately influences performance .

 

Many thanks,

Anton


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>