Closed dchess closed 4 years ago
@zkagin When I run this locally, I don't get the memory error, it just fails silently.
2020-09-26 12:38:44AM UTC | INFO: StudentSubmissions: Generating requests...
2020-09-26 12:38:54AM UTC | INFO: StudentSubmissions: 1923 requests remaining.
2020-09-26 12:39:10AM UTC | INFO: StudentSubmissions: 1630 requests remaining.
2020-09-26 12:39:59AM UTC | INFO: StudentSubmissions: 1382 requests remaining.
With debug it does much the same thing with no further clue.
Interesting. There's not much that gets retained between batches, so perhaps the data coming back from StudentSubmissions is overwhelming the RAM provided on your server or VM? I'll try and repro this by limiting available memory as well. Does it happen only for StudentSubmission?
In the mean time, one hypothesis for a fix would be to lower the batch size on StudentSubmissions. If you are still getting this silent crash after that, then maybe there is something else going on.
@zkagin I tried reducing the batch size and that worked for a little while but we eventually encountered the error again at the smaller batch size. I've doubled the RAM on the server and that worked so far.
@zkagin Here's a traceback for that memory error I mentioned: