Cron config hierarchy

ben.scott - September 22, 2009 - 12:44
Project:Media Mover
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi -

When nested configs are run from cron, the child can get called before the parent - so the child config's files are missing. I think cron needs to honour the hierarchy, and it seems the easiest way to fix this is to change media_mover_api_get_configurations() so it orders by parent - patch for this is attached. It is a commonly used function though - but I've tested and so far haven't found any repercussions for updating the order..?

Cheers,

Ben

AttachmentSize
cron.patch614 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.