MyBB Community Forums
MyBB Task Manager - How they really work? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: MyBB Task Manager - How they really work? (/thread-140003.html)



MyBB Task Manager - How they really work? - blackdream - 2013-05-27

Hello,

I am just curius on how the task manager actually works in myBB. I mean is MyBB using a crontab to do that or just is simplier than it seems?

If i choose for example to run a task every min, it will run every min or i have to make a request to myBB forum to run it?

Hope you understand me

Thank you


RE: MyBB Task Manager - How they really work? - Euan T - 2013-05-27

It runs whenever a user requests the site at all and it's been scheduled to run. It's a very basic system.


RE: MyBB Task Manager - How they really work? - Wildcard - 2013-05-27

I'm no expert on the subject but I think this is correct: An image exists in the footer of the page output that actually links to a script that runs scheduled tasks. So when anyone views a forum page the task queue is checked and if tasks are due they are processed.

I am sure if that is inaccurate someone will correct me.

EDIT: Ninja payback from Euan


RE: MyBB Task Manager - How they really work? - Euan T - 2013-05-27

Your explanation is far more thorough though Wildcard Wink


RE: MyBB Task Manager - How they really work? - Wildcard - 2013-05-27

Yeah, that's why you beat me-- took too long to type :p


RE: MyBB Task Manager - How they really work? - blackdream - 2013-05-27

(2013-05-27, 06:55 PM)Euan T Wrote: It runs whenever a user requests the site at all and it's been scheduled to run. It's a very basic system.



Yes i understand. I saw the code only for 5 mins and since i didint find anything related to crontab i wanted to ask just to verify it.


Thank you guys. :-)


RE: MyBB Task Manager - How they really work? - laie_techie - 2013-12-06

Sorry for bumping an older thread, but I want to add that each time task.php is executed (such as in the footer), it only tries to execute a single task.