mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #41244
[Bug 1417816] Re: Export queue to deal with big vs small exports differently
** Changed in: mahara
Milestone: 17.04.0 => None
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1417816
Title:
Export queue to deal with big vs small exports differently
Status in Mahara:
Confirmed
Bug description:
We should only export big archiving when server is not busy but we
should be able to do small exports at any time.
So we need to work out before an export begins approximately how big
it is going to be and record that in the export_queue table.
Currently in htdocs/export/lib.php (line 625) there is the following:
// Get an estimate of how big the unzipped export file would be
// so we can check that we have enough disk space for it
$space = $exporter->is_diskspace_available();
So we can take the value of $space and make a decision on it and bail
out if $space is big and server is busy. Something like:
if ($space > TOO_BIG && server_busy()) {
log_info('too busy');
return true;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1417816/+subscriptions
References