Skip to content

Commit

Permalink
Increase the inactivity timeout for some long operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Dec 18, 2024
1 parent a66592f commit 3600be4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/WeBWorK/ContentGenerator/CourseAdmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3600be4

Please sign in to comment.