Are there any readily available “Poor man’s crontab” implementations (php script called every minute or so) that can be easily integrated into Zend Framework? Preferably utilizing a view script dashboard, for jobs management, populated by controller.
*Edit:
I found a Zend_Scheduler, which appear to do somewhat what I’m after. What’s missing is a mechanism to stay self sustained (not rely on external crontabbed wget or similar), but execute on actual page loads.
Is there a suitable place in Zend framework I can piggyback $scheduler->run() from? Bootstrap::__destruct() or similar? In order to complete rendering the view, and push to client before any scheduled tasks take place? (So the client won’t be affected by any long running taks that might be scheduled.
(Schedule naturally won’t be accurate when there are no visitors, but my assumption here is that any scheduled task wouldn’t have to be performed if no-one is around to see the result)
*Edit2:
Zend_Scheduler is so old, it’s incompatible with newer Zend Framework versions, and thus not working as intended. Are there any other self sustained libraries that can be used for this?
I guess you mean Drupal’s poormanscron module. The Zend Framework does not ship with anything like that and actually neither does Drupal but they have modules which are created and supported by the Drupal community.
Zend Framework unfortunately is missing something like community driven modules. You have to find your modules somewhere in the wild. I doubt it you will find something like poormanscron but maybe you can take that module and with a few minor changes works in ZF.