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

feat: move handler config out of frame meta to a configuration script #37

Merged
merged 24 commits into from
Jan 2, 2025

Conversation

cablehead
Copy link
Owner

@cablehead cablehead commented Dec 29, 2024

Move handler configuration from register frame metadata to a record returned by the
handler configuration script. This allows using Nushell code for configuration, making
it more powerful and flexible (e.g. resume_from can use Nushell to locate the right
frame ID).

Config record fields:

  • process (required): Handler closure to process frames
  • resume_from: Control processing start point (tail/head/id)
  • modules: Inline module definitions
  • pulse: Heartbeat interval
  • return_options: Output frame configuration

Other changes:

  • Replace state parameters with environment persistence
  • Remove with_env in favor of setting vars in configuration script
  • Convert to dedicated per-handler threads, removing thread_pool
  • Temporarily remove .process command until use-cases clarify
  • add a skeleton astro starlight template to /docs

@cablehead cablehead force-pushed the feat-handler-preserve-env branch from 9969998 to 4df2e02 Compare January 1, 2025 21:47
@cablehead cablehead force-pushed the feat-handler-preserve-env branch from 68fda01 to caaad92 Compare January 1, 2025 22:26
@cablehead cablehead marked this pull request as ready for review January 2, 2025 02:07
@cablehead cablehead changed the title feat: preserve engine env between handler calls feat: move handler config out of frame meta to a configuration script Jan 2, 2025
@cablehead cablehead merged commit 2d14cbf into main Jan 2, 2025
2 checks passed
@cablehead cablehead deleted the feat-handler-preserve-env branch January 2, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant