Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get job state / post-job hook #144

Closed
noamross opened this issue Jun 26, 2019 · 3 comments
Closed

Get job state / post-job hook #144

noamross opened this issue Jun 26, 2019 · 3 comments

Comments

@noamross
Copy link

Currently, one can set job states, status, etc., with function luke rstudioapi::setJobState(). However, one can not retrieve them as far as I can tell. I would like a getJob() or getJobs() function akin to those functions for launcher jobs.

It seems this is available with hidden IDE function .rs.invokeRpc("get_jobs").

My use-case is writing some wrappers to alert me to the status of jobs running on my server (with RPushbullet).

It would also be helpful to have a post-job hook akin to stop or info in jobAdd() that could define a function (taking the script name and results environment as an argument) to run after a job defined with jobAdd() or jobRunScript().

@AshesITR
Copy link
Contributor

I would also like this feature.
My usecase is starting a Net of jobs, some of which wait for other jobs to complete and generate some artifacts (RDS) upon which the downstream jobs depend.

@Erinaceida
Copy link

after almost five years has this still not been added?

@kevinushey
Copy link
Contributor

Sorry for the wait -- this is now available in the latest daily builds of RStudio + the development versions of rstudioapi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants