# PRESTREAM

A Prestream can be utilized with specific IO profiles. When a profile is triggered, the Prestream can execute a workflow in advance. A Prestream streamcan only be added to anothe profile, there is no dedicated Prestream Profile available.

Any information collected or gathered (e.g., stream variables) during its runtime will be passed on to the actual stream of the triggering origin.

It is possible to cancel a job by employing a [Job Status Update Action](/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/job-action/job-status-update-action.md) node or a [Job Delete Action](/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/job-action/job-delete-action.md) node.&#x20;

Another functionality of the Prestream is that the job can be reassigned to another client by using a [Job Create Job Action](/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/job-action/job-create-job-action.md) node followed by a [Job Delete Action](/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/job-action/job-delete-action.md) node. Please keep in mind that this cannot be used to recall the same profile, as the Prestream would end up in a loop. Instead, the target stream should be utilized in another profile without a dedicated Prestream.

{% hint style="warning" %}
**Disclaimer:**\
Pre-streams are designed to perform quick checks or verifications that typically last only a few milliseconds, or at most a few seconds. If a pre-stream is implemented in a way that takes around 20 seconds, it can significantly stall the job queue.
{% endhint %}

### Host Assignment

{% hint style="warning" %}
Any stream with this trigger must have "CLIENT" as the host type.

Since this stream needs to be assigned to any user/client, server execution is not possible.
{% endhint %}

### &#x20;Limitation

{% hint style="danger" %}
Using a [Split Stream Action](/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/misc-21/split-stream-action.md) node within a Prestream is not permitted.

A Prestream can only have synchronous execution, meaning that the stream runtime cannot exceed 60 seconds.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helmut.de/helmut4-releases/helmut4-components/helmutio/streams/io-event-triggers/prestream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
