Stop rstudio jobs scheduled by `jobRunScript`

Open
#234 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Start by reading the existing jobRunScript and jobRemove API documentation and their implementations to understand how scheduled jobs and running processes are tracked. Investigate the current job lifecycle and determine how cancellation should differ from removing a job from the task list. Done means the supported API behavior clearly stops an active job without relying on task-list removal, with coverage for the cancellation case.

Written by the indexing model from the issue text.

Description

Is there any method to stop/cancel a running job scheduled by jobRunScript? I know jobRemove can remove jobs from the task list, but the process is not terminated even removed.

I wrote a script that process a large data, and opens the folder once finished. I thought jobRemove could terminate the process, but after grabbing a cup of coffee, 100 folders were opened (XP

I feel like people might be confused about why we need to hide a job that is still running. I understand there must be reasons, but it simply sounds suspicious. I can imagine someone shares a piece of R code that runs a rstudio job, uses rstudio as a "shell" to camouflage itself, but hide in the background keeping sending sensitive information to the internet. Lots of amateur R learners simply run the code online without checking what's inside.

Dominant language
R
Stars
175
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 rstudio/rstudioapi

All issues in rstudio/rstudioapi

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.