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

Rejecting scheduled request #85

Open
CharikovAI opened this issue Mar 27, 2019 · 3 comments
Open

Rejecting scheduled request #85

CharikovAI opened this issue Mar 27, 2019 · 3 comments
Labels
feat-request Request for a feature

Comments

@CharikovAI
Copy link

Using Oracle we can call scheduled functions. But is it possible to cancel scheduled function? I mean, for example, if I scheduled an function that updates something in my contract in 10 minutes but in 5 minutes I changed my mind, I don't need update something. In this case, can I cancel scheduled function?

@D-Nice
Copy link
Contributor

D-Nice commented Mar 27, 2019

That is currently not possible, and would seem potentially counter-productive, as by way of the standard payment model, you are pre-paying for the callback. This is the first time we have seen this feature request.

If for whatever reason you do wish to reject the results of a subsequent or specific query, you are able to do so via your contract currently, by having a rejectQuery or the like function.

Could you specify any more specific use-case where this may be handy?

@CharikovAI
Copy link
Author

@D-Nice thanks for your answer!
In my case, I would like to update price either by request or once per hour. So if I already have an updating request in query and the price updated, I have to reject the first request and create new in 1hour.
But I agree that with standard payment model, it's counter-productive. Thanks.

@D-Nice
Copy link
Contributor

D-Nice commented Mar 28, 2019

That appears to be an interesting use-case, we'll keep an eye out if there's any others with similar requests to see if it's something for our roadmap.

@D-Nice D-Nice added the feat-request Request for a feature label Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat-request Request for a feature
Projects
None yet
Development

No branches or pull requests

2 participants