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 19, 2024
1 parent f27977b commit 0043d37
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 @@ -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];

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

0 comments on commit 0043d37

Please sign in to comment.