Manages posting job status updates to the notifier.
More...
#include <AbstractJobStatusWatcher.hpp>
Manages posting job status updates to the notifier.
◆ AbstractJobStatusWatcher()
rstudio::launcher_plugins::jobs::AbstractJobStatusWatcher::AbstractJobStatusWatcher |
( |
JobRepositoryPtr |
in_jobRepository, |
|
|
JobStatusNotifierPtr |
in_jobStatusNotifier |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
in_jobRepository | The job repository, from which to look-up jobs. |
in_jobStatusNotifier | The job status notifier to which to post job updates. |
◆ updateJobStatus()
Updates the job status for the specified job.
Attempts to look up the job in the repository. If the job cannot be found getJobDetails(...) will be invoked.
- Parameters
-
in_jobId | The ID of the job which should be updated. |
in_newStatus | The new status of the job. |
in_statusMessage | The new status message of the job, if any. |
in_invocationTime | The time at which the job was updated, if different from now. |
- Returns
- Success if the job could be found and updated; Error otherwise.
The documentation for this class was generated from the following file: