Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

237
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda