From 0043d3753ed750a2cdb79270da6a20a738fa3f5a Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 19 May 2023 05:29:54 -0500 Subject: [PATCH] Increase the inactivity timeout for some long operations. --- lib/WeBWorK/ContentGenerator/CourseAdmin.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/WeBWorK/ContentGenerator/CourseAdmin.pm b/lib/WeBWorK/ContentGenerator/CourseAdmin.pm index 034f60b373..10963c8c44 100644 --- a/lib/WeBWorK/ContentGenerator/CourseAdmin.pm +++ b/lib/WeBWorK/ContentGenerator/CourseAdmin.pm @@ -1057,6 +1057,9 @@ sub do_archive_course ($c) { my $ce = $c->ce; my $db = $c->db; + # Increase the inactivity timeout for this potentially long operation. + $c->inactivity_timeout(1200); + my @archive_courseIDs = $c->param('archive_courseIDs'); my $archive_courseID = $archive_courseIDs[0]; @@ -1267,6 +1270,9 @@ sub do_unarchive_course ($c) { my $unarchive_courseID = $c->param('unarchive_courseID') || ''; + # Increase the inactivity timeout for this potentially long operation. + $c->inactivity_timeout(1200); + unarchiveCourse( newCourseID => $new_courseID, oldCourseID => $unarchive_courseID =~ s/\.tar\.gz$//r,