RTC Forums
November 23, 2024, 11:37:05 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Quickjob Queue Count  (Read 4862 times)
HelgeLange
RTC Expired
*
Posts: 100


« on: June 10, 2016, 04:33:32 PM »

Hi Danijel,

is there a way to know if a QuickJob component still has something in its queue ?
I have a job that executes every 5 seconds. Of course I can put a serialized job but if for some reason the job needs more than 5 seconds, i'd like to skip the current step and wait another 5 seconds.

Helge
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: June 10, 2016, 04:57:44 PM »

Sorry, but ... unless you write you own code to keep track of your "jobs", there is no way of telling how many jobs are in a "queue", simply because each call to the Post method on the TRtcQuickJob component (with Serialized=False) creates a new virtual thread for that specific job and the virtual thread is automatically released when the job finishes.

Best Regards,
Danijel Tkalcec
Logged
HelgeLange
RTC Expired
*
Posts: 100


« Reply #2 on: June 10, 2016, 06:09:16 PM »

And for serialized jobs ?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: June 10, 2016, 07:37:29 PM »

Download RealThinClient SDK v7.21 (just uploaded) and you will see 3 new methods on the TRtcQuickJob component, giving you basic information about the current job status when using the component with Serialized=True.

Best Regards,
Danijel Tkalcec
Logged
HelgeLange
RTC Expired
*
Posts: 100


« Reply #4 on: June 10, 2016, 09:34:03 PM »

thanks, godlike! That's support Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 16 queries.