Finally found the way to do this. Oh so simple ofcourse: 'just' add a function to cron and make it spit out the output buffers so the connection gets closed and the script continues to run in the background.

Add an update status notification to the overview page, so the user can see that updates are being fetched.

Comments

malc0mn’s picture

This is what we need: https://drupal.org/project/httprl

Cool that!

malc0mn’s picture

Version: 6.x-1.0-beta8 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Patch (to be ported)

Fixed a small bug in the #1572130: Check security updates on all sites at once batch processing, expanded it and updated these drush commands to make use of this batch process as well:

drush prod-monitor-updates
drush prod-monitor-fetch

Calling both drush commands will ask if you really want to fetch all data or check all sites for updates. This means that module update checking on cron can now be achieved by adding the following to your crontab:

# Check all sites for updates, once a day starting at 0100H at night.
0 1 * * *    /path/to/drush -r /path/to/docroot prod-monitor-updates -y --quiet
# Fetch all site data every five minutes (or whatever you please obviously).
0/5 * * * *    /path/to/drush -r /path/to/docroot  prod-monitor-fetch -y --quiet

Added to 7.x-1.x-dev branch, to be ported to 6.x.

malc0mn’s picture

Status: Patch (to be ported) » Closed (fixed)

Ported to D6.