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

Create schedule plugin type and trigger #25815

Closed
pauldix opened this issue Jan 12, 2025 · 0 comments · Fixed by #25852
Closed

Create schedule plugin type and trigger #25815

pauldix opened this issue Jan 12, 2025 · 0 comments · Fixed by #25852
Assignees
Labels

Comments

@pauldix
Copy link
Member

pauldix commented Jan 12, 2025

The schedule plugin should get the same plugin API yielded to it that the wal plugins get. It should get one of these: https://github.com/influxdata/influxdb/blob/main/influxdb3_py_api/src/system_py.rs#L27-L31

The Python code should require a single function as the entry point named process_scheduled_call. It should look something like:

def process_scheduled_call(influxdb3_local, schedule_time, args=None):

The trigger definition should take a trigger_spec that is a schedule string like those used with cron. When the trigger is enabled, it should run in a background task and trigger off that schedule, or be able to be disabled.

An API and CLI should be added to support this new type.

An endpoint should be added to test these plugins, like the wal type. When the test runs it would run once and return the results to the caller. The CLI should be updated so that test can call for this type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants