GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

com.example.batch.CreateResourcesIT: remove `@Ignore` from tests

Offen
#9,855 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api: batch priority: p2 samples triage me type: bug
Vorherrschende Sprache
Java
Sterne
1.9k
Forks
2.9k
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
17

Beschreibung

The integration tests for the Batch samples were disabled in #9841.

Reason:

The samples clean up logic requires regular polling of each Job created in the test file. Jobs can take ~2-4 minutes to complete. The polling logic allows for regular retries up until 1200 seconds before erroring out. Unfortunately, not all of the jobs are marked as SUCCEEDED or FAILED in the time provided.

The Batch API has a `CancelJob` method that is available in v1alpha but not v1. Once this method is available to the v1 channel, we should be able to cancel a job after it has been created and then delete it.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.