How to ban re-routing the PHP file until it's finished.



  • There's a PHP file that accepts POST request and starts updating the OBD. How do we stop calling this file until the OBD update is finished? This file can be called by different computers.

    So far, there's a way to keep the process in the file, as far as is right, there are no other mechanisms?



  • You create a table, a process, and a state, until one of the things in the process is "in work" - you don't start others.

    We've finished the process, he's a "done" status, you take the next one.

    In order to start all in line, you can use the queue mechanism, and (optional) ready for it, like redis


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2