Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research how durations are getting serialized #1750

Open
travjenkins opened this issue Nov 1, 2024 · 0 comments
Open

Research how durations are getting serialized #1750

travjenkins opened this issue Nov 1, 2024 · 0 comments
Labels
question Further information is requested

Comments

@travjenkins
Copy link
Member

Question

How are durations getting serialized and handled? Does rust vs go connectors matter? Are there limitations, etc. Also, can we update interval (and possibly ALL durations?) to use something like the duration format to make the spec more explicit.

Background

The interval property in the capture spec is not exactly what it seems if you just read the spec. It has a pattern of ^\d+(s|m|h)$ . However, when the spec is submitted the server will serialize the value to a different pattern. This means that the UI and users have to manage this conversion.

Related

UI task - estuary/ui#1194

Spec

interval
string ∪ null

Configured intervals are applicable only to connectors which are unable to continuously tail their source, and which instead produce a current quantity of output and then exit. Flow will start the connector again after the given interval of time has passed. Intervals are relative to the start of an invocation and not its completion. For example, if the interval is five minutes, and an invocation of the capture finishes after two minutes, then the next invocation will be started after three additional minutes.

Pattern: ^\d+(s|m|h)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant