scramjetorg / transform-hub

Scramjet Transform Hub (STH) is a runtime supervisor that can run data processing programs called Sequences and manage local resources on any Linux server, Docker on small edge servers, and even large-scale Kubernetes clusters in the cloud or datacenters. It connects to Scramjet Spaces in Scramjet Cloud Platform.
GNU Affero General Public License v3.0
67 stars 8 forks source link

Auto set contenty-type in PANG #972

Closed patuwwy closed 1 year ago

patuwwy commented 1 year ago

What? When Instance has overwritten output to topic, ie with command

si seq start --output-topic test-topic

but content-type is unknown, will set content-type to match topic content-type (if exists) or set to default content-type (application/x-ndjson)

So, to set prefered content-type one should create topic first

si topic create test-topic -t text/plain

and then

si seq start <SEQ> --output-topic test-topic

otherwise topic will be created with default content-type

Why? If Sequence's output Content-Type is not defined there is no possibility to redirect output to topic

Usage:

-

-

Clickup Task:

How it works:

-

-

Review checks:

These aspects need to be checked by the reviewer: