Skip to content

Conversation

@eschultink
Copy link
Member

Features

  • parallelize pipeline deletion

Change implications

  • breaking change to API? no
  • changes dependencies? no

@eschultink eschultink requested review from aperez-worklytics, Copilot and jlorper and removed request for aperez-worklytics April 1, 2025 22:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to parallelize the deletion of pipeline components by replacing sequential deleteAll calls with a parallel stream.

  • Replaces sequential deletion calls with a parallelStream approach.
  • Updates the list of kinds to delete by replacing FanoutTaskRecord with ExceptionRecord.
Comments suppressed due to low confidence (1)

java/src/main/java/com/google/appengine/tools/pipeline/impl/backend/AppEngineBackEnd.java:760

  • Ensure that the deleteAll method is thread-safe as it is now invoked in parallel.
kindsToDelete.parallelStream()

ShardedValue.DATA_STORE_KIND,
Barrier.DATA_STORE_KIND,
JobInstanceRecord.DATA_STORE_KIND,
ExceptionRecord.DATA_STORE_KIND
Copy link

Copilot AI Apr 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated deletion list replaces FanoutTaskRecord with ExceptionRecord. Confirm whether this change is intentional or if FanoutTaskRecord should also be deleted.

Suggested change
ExceptionRecord.DATA_STORE_KIND
ExceptionRecord.DATA_STORE_KIND,
FanoutTaskRecord.DATA_STORE_KIND

Copilot uses AI. Check for mistakes.
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

Successfully merging this pull request may close these issues.

2 participants