use of com.google.cloud.scheduler.v1beta1.RunJobRequest in project java-scheduler by googleapis.
the class ITSystemTest method runJobTest.
@Test
public void runJobTest() throws Exception {
RunJobRequest jobRequest = RunJobRequest.newBuilder().setName(JOB_NAME).build();
ApiFuture<Job> job = client.runJobCallable().futureCall(jobRequest);
while (true) {
if (job.isDone()) {
assertJobDetails(job.get());
break;
}
}
}
use of com.google.cloud.scheduler.v1beta1.RunJobRequest in project java-scheduler by googleapis.
the class ITSystemTest method runJobTest.
@Test
public void runJobTest() throws Exception {
RunJobRequest jobRequest = RunJobRequest.newBuilder().setName(JOB_NAME).build();
ApiFuture<Job> job = client.runJobCallable().futureCall(jobRequest);
while (true) {
if (job.isDone()) {
assertJobDetails(job.get());
break;
}
}
}
Aggregations