Search in sources :

Example 1 with RunJobRequest

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;
        }
    }
}
Also used : RunJobRequest(com.google.cloud.scheduler.v1beta1.RunJobRequest) Job(com.google.cloud.scheduler.v1beta1.Job) Test(org.junit.Test)

Example 2 with RunJobRequest

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;
        }
    }
}
Also used : RunJobRequest(com.google.cloud.scheduler.v1.RunJobRequest) Job(com.google.cloud.scheduler.v1.Job) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 Job (com.google.cloud.scheduler.v1.Job)1 RunJobRequest (com.google.cloud.scheduler.v1.RunJobRequest)1 Job (com.google.cloud.scheduler.v1beta1.Job)1 RunJobRequest (com.google.cloud.scheduler.v1beta1.RunJobRequest)1