You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
engine.queue.config.max_bytes bounds the queue by memory, not only by record count. The
producer pauses once the queued iterations take about that many bytes, estimated from the average
size of the iterations produced so far. Unset by default.
Incremental sources can persist their own state.SourceIteration.next_state is saved to stream_jobs.incremental_state, a column that has always existed but was never written, so no
migration is needed. The next run receives it as source_state.state. The last non-None value of a run
is kept, and only if the job succeeds. A run that emits none carries the previous state forward. A reset
starts from an empty state.
SourceIncrementalState.run_started_at is the current job's created_at, which is stable across
resumes. It is exactly the last_run the next run will receive, so using it as the window's upper bound
makes consecutive windows tile with no gap.
Opt-in HTTP policy for sources: source.http.
The block sets a default timeout, retries 5xx and Cloudflare 52x responses even without a Retry-After, and caps how long a Retry-After can make the run sleep.
Exhausted retries raise a requests.HTTPError carrying the last response, not a RetryError.
Without the block nothing changes.
AbstractSource.get_retry_policy() lets a source tune retries without overriding get_session(), so it keeps the default session and its raise_for_status hook.
A warning when source.http is set on a source that overrides get_session(). The block has no
effect there.
bizon config validate <config> checks a config without running anything.
It validates the engine schema, the stream name and the source's own config class.
Errors exit non-zero; --strict makes warnings exit non-zero too.
--skip-references validates without resolving secrets, for CI.
Unknown source: keys now log a warning. Previously they were dropped silently and the run fell
back to defaults, typically after a typo or a key that belongs under destination.config. Source
config classes declared with extra="allow" are exempt.
bizon run --result-json <path> writes the run's outcome as JSON.
It records status, a failure_class and the job id, plus the records written, the duration and
the first logged error.
The failure classes are config, source, destination, backend, queue, transform, stream, killed and unknown.
The file reads running until the run ends, so a process killed from outside leaves that behind
instead of a stale outcome.
The exit code is unchanged.
Optional top-level id:, a stable identity for a pipeline's backend state (jobs, cursors,
resets). It defaults to name, so existing pipelines keep their state. With id set, name is
purely cosmetic and can be renamed freely.
Changed
OAuth2 tokens are refreshed shortly before they expire, not after. A request sent in the last
moments of a token's lifetime could reach the API after the token expired and get a 401. The default
margin is 10% of the token's lifetime, at most 60 seconds. Set it with expiry_skew_seconds on Oauth2AuthParams, or override get_expiry_skew_seconds().
An iteration larger than the destination's buffer_size is written in buffer-sized chunks
instead of failing the run with Records size ... is greater than buffer size.
The iteration gets a single destination cursor, written only once every chunk has landed. A crash
midway therefore resumes from the previous iteration and re-writes the chunks, which is
at-least-once. It does not skip the rest of the iteration.
source_state.last_run is now timezone-aware UTC. It used to be naive, as read back from the
backend. .timestamp() callers are unaffected on UTC hosts. isoformat() callers now get a +00:00
suffix, and comparing it with a naive datetime raises TypeError.
Deprecated
source.reset: true in a config file. It resets on every run until someone removes it. It still
works, but bizon run and bizon config validate now warn. Use bizon run --reset or bizon stream reset <config> instead.
Fixed
Token auth with an empty auth_method sent the token with a leading space, which requests
rejects with InvalidHeader. Bare keys in a custom header (auth_header: x-api-key, auth_method: "")
now work.