Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Run Executor #268

Open
jackzampolin opened this issue Nov 18, 2020 · 1 comment
Open

Run Executor #268

jackzampolin opened this issue Nov 18, 2020 · 1 comment

Comments

@jackzampolin
Copy link

I'm not seeing in the docs how I can run an Executor. Am I missing this somewhere

@hilmarx
Copy link
Contributor

hilmarx commented Nov 19, 2020

Yes the docs are still incomplete atm in that regard as we are currently focussed on working on the v2 that will introduce a lot of changes on the Executor side, therefore we don't want community members to invest too many resources in the current version of the Executor system:

If you still want to try it out: Running an Executor basically requires you to fetch the TaskReceipts assigned to your Executor via LogTaskSubmitted on GelatoCore.sol. For the taskReceipts that got assigned to your executors, call canExec to see if it's executable and if so, call exec to execute the task and get the reward (gasConsumed * gasPrice + fee). There are of course some nuances to that. However, I would recommend waiting for the next version which will come with better documentation and is estimated to arrive beginning of next year!

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

No branches or pull requests

2 participants