Newer Version Available
Apex Trigger Repartitioning
To repartition an Apex trigger that is already configured with parallel subscriptions,
update the existing PlatformEventSubscriberConfig in Tooling API or Metadata API.
After a trigger's parallel subscription configuration is modified, new partitions are created. The system keeps the old partitions until it finishes processing the remaining events in those partitions. After all the events are processed, the old partitions are deleted and only the new partitions run.
To update PlatformEventSubscriberConfig in Tooling API, make a PATCH request to this URI with the record ID appended:
For information about the request body to send for PlatformEventSubscriberConfig, see Configure Parallel Subscriptions for an Apex Trigger.
In Metadata API, you can redeploy the PlatformEventSubscriberConfig component by using the same developer name and different values.