Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

LSF/OpenLava template: Signal SIGINT by default to allow R to catch it gracefully

Open Beginner friendly
#105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
hpc, r

Research direction

Start by locating the default LSF/OpenLava template and its handling of the wa and wt resources. Verify that the defaults request SIGINT 1 minute before the run-time limit while preserving user-provided values; done when the generated submission uses those defaults and existing overrides still work.

Written by the indexing model from the issue text.

Description

feature/resources scheduler/lsf

When a job is approaching it's maximum run-time limit, LSF sends a SIGINT 10 seconds before sending a SIGKILL (abrupt; not capturable).

R code can handle the SIGINT, but the 10-second heads up might be a bit tight. To adjust this, we can use LSF options -wa <action> and -wt <minutes>, e.g. -wa INT -wt 1 will give us a 60-second heads up.

Idea

Update the default LSF template to signal SIGINT 60 seconds in advance. Something like:

<%
  ## Signal SIGINT 60 seconds (1 minute) before the run-time limit
  if (is.null(resources[["wa"]])) {
    resources[["wa"]] <- "INT"
  }
  if (is.null(resources[["wt"]])) {
    resources[["wt"]] <- 1
  }
%>
Dominant language
R
Stars
87
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from futureverse/future.batchtools

All issues in futureverse/future.batchtools

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.