Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Queue with delay or alternative

I have a chatbot application that needs to finish its session X minutes after the latest message from user. I run a job each X minutes which I verify if the last message has been sent X minutes ago. Do you guys have some suggestion for that problem without a job use? I think something as a queue with a X minutes delay or something like that. What is a better way to do that?

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

If your chatbot is running on clients with javascript enabled, you can set and clear and reset a window timer on each key stroke...basically if the time goes off after x minutes, that means no key has been pressed, at that time you can do whatever is needed to close the application.

Read more about window.setTimout here: https://developer.mozilla.org/en-US/docs/Web/API/setTimeout

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!