Postprocessor Slots
WERK24 operates multiple post-processing systems that transform raw extraction results into customer-specific deliverables. These systems are exposed through postprocessor slots so that you can explicitly choose which pipeline should handle a request.
Green–Blue Development
Historically, adapting a post-processing pipeline for a new requirement meant iterating on a single production version: roll out, observe, roll back if necessary, and repeat. This iterative versioning loop is slow and interrupts other consumers of the same pipeline.
With postprocessor slots we split the infrastructure into two long-running environments:
Slot | Intended usage |
---|---|
GREEN |
Current production-ready post-processing pipeline. |
BLUE |
Experimental pipeline where you can test new logic or configuration changes. |
This green–blue development strategy lets you deploy modifications into the blue slot, validate them against real requests, and promote the outcome to green only when you are satisfied. It delivers the benefits of versioned deployments—safe experimentation and fast rollback—without forcing every consumer to migrate between numbered releases.
Selecting a Slot for a Request
Postprocessor slots are opt-in. If you do not specify a slot, the request uses the default
pipeline configured for your tenant. When you want to exercise green–blue development, pass
one of the available slots explicitly via the PostprocessorSlot
enum.
Python Example
from werk24 import AskCustom, PostprocessorSlot
ask = AskCustom(
custom_id="my_company_report",
config={"include_images": True},
postprocessor_slot=PostprocessorSlot.BLUE,
)
In this example the request is routed to the blue post-processing environment. Once the
results meet your acceptance criteria you can switch the slot back to PostprocessorSlot.GREEN
to consume the production pipeline without altering the rest of your integration.
ℹ️ Tip: Coordinate slot usage with your WERK24 contact to ensure that the desired post-processing pipeline is deployed to the corresponding slot for your account.