isJob() returns false for Workbench Jobs

Open
#287 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
api

Research direction

Start by locating the isJob() entry point and tracing how it distinguishes Background Jobs from Workbench Jobs. Reproduce the reported result in both execution contexts, then verify that the check reports TRUE for Workbench Jobs without changing its behavior for Background Jobs.

Written by the indexing model from the issue text.

Description

In Workbench, as far as I can tell with my testing, isJob() returns TRUE only when used as Background Job and return FALSE when executed in a Workbench Job.

Could we modify the check so that it also returns TRUE when called from within a Workbench Job?

One example was a customer asking for how to have different behavior when run in dev (local interactive session) and use different data for example when run in a Workbench Job in a much lager scaled session.

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.