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

Support creating tasks that reference invokable scripts #582

Open
DStape opened this issue Jun 13, 2023 · 1 comment
Open

Support creating tasks that reference invokable scripts #582

DStape opened this issue Jun 13, 2023 · 1 comment

Comments

@DStape
Copy link

DStape commented Jun 13, 2023

Proposal:
The python client should allow users to create tasks that reference scripts, see https://docs.influxdata.com/influxdb/cloud/process-data/manage-tasks/create-task/#create-a-task-that-references-a-script

Current behavior:
It is not possible to create tasks that reference invokable scripts.

Desired behavior:
It should be possible to create tasks that reference invokable scripts. This is already supported by InfluxDB Cloud, the python client just needs updated to support doing so.

Alternatives considered:
The alternative is to use a HTTP client directly (I dno what the status of this is in other, non-python clients, but I need to use python.)

Use case:
There are various resources published online by the Influx people about how and why to use invokable scripts and how these can be utilized from tasks (amongst other resources), so it would be good if the official python client was capable of supporting this.

@DStape
Copy link
Author

DStape commented Jun 13, 2023

I note that a lot of the current client code is generated from https://github.com/influxdata/openapi/blob/master/contracts/invocable-scripts.yml - which, as expected, does not contain any scriptIDs or scriptParameters.

However, https://github.com/influxdata/openapi/blob/master/contracts/cloud-diff.yml does define these bits.

This has led me to #525, the outcome of which suggests you may be happy to add support for cloud-only features on a piecemeal basis. If that is the case, would it be possible to extend the accepted request body parameters for /api/v2/tasksso that tasks can reference invokable scripts? Thank you.

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

No branches or pull requests

1 participant