User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:corebos_mqtm [2017/07/30 17:47]
joebordes [Feedback for long running processes]
en:devel:corebos_mqtm [2018/05/09 14:32] (current)
joebordes [Task Manager]
Line 127: Line 127:
 The default task manager in coreBOS is incredibly simple, consisting of an infinite loop that looks for messages on the queue for all subscribers​ and launches the defined task when one arrives. The default task manager in coreBOS is incredibly simple, consisting of an infinite loop that looks for messages on the queue for all subscribers​ and launches the defined task when one arrives.
  
-On every iteration of the loop it checks ​and expires messages accordingly.+The task manager is an independent process that must be launched or initiated manually with the "​run"​ command like this: 
 + 
 +<​code>​ 
 +cd your_corebos_install_top_directory 
 +php include/​cbmqtm/​run.php 
 +</​code>​ 
 + 
 +This will run forever in an infinite loop that, on every iteration of the loop will check and expires messages accordingly. If a message must be delivered it will launch the indicated tasks for all subscribers so they can consume the messages.
  
 This is implemented using the OSS [[https://​github.com/​shaneharter/​PHP-Daemon|PHP-Daemon]] project (thanks!!) This is implemented using the OSS [[https://​github.com/​shaneharter/​PHP-Daemon|PHP-Daemon]] project (thanks!!)