Forums | Mahara Community
Support
/
Pending release after archiving
16 March 2023, 23:24
Greetings
I have a number of assignments that are stuck at "Pending release after archiving". Any advice welcome please on how these assignments can be released.
I've attached screenshots.
Thanks in advance.
Christine.
20 March 2023, 7:41
Hi Christine,
The releasing of portfolios is done on a cron job basis as long as enough server resources are available. Please check that your cron is running. If it is, it may be that your server is either busy or does not have enough CPU allocated.
From one of our developers:
You can (temporarily) disable the calculation of the server_busy function in htdocs/lib/mahara.php, which decides when to allow the archiving (function server_busy($threshold = false)
)
The quickest remedy would be to just have this return 'false' straight away (line 5495 in the linked mahara.php which is in the main branch. The line might differ in your version of Mahara). If you are confident the server isn't actually under a large load this may work fine for you.
The server_busy() function does do a calculation though.
You could adjust the default threshold listed if you are concerned about the actual resource usage on the machine(s). The default is 0.5 (line 5516 at the link above; $threshold = ($threshold) ? $threshold : '0.5';
).
Cheers
Kristina