From 3600be413f8d0ea43eec3549bfa88bd97e84130f 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 c87566a8f5..6f3b7809d5 100644 --- a/lib/WeBWorK/ContentGenerator/CourseAdmin.pm +++ b/lib/WeBWorK/ContentGenerator/CourseAdmin.pm @@ -1027,6 +1027,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]; @@ -1222,6 +1225,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,