-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internal: introduce an Executor class
Problem: the `Node` class assumes that the coordinator will use the aleph.im compute resource nodes in all cases. We wish to let the user specify dedicated executor servers as well. Solution: introduce an `Executor` class that takes a node and an optional VM function. If running on aleph.im, the API URL of the executor will be https://{node_url}/vm/{function}, otherwise it will default to https://{node_url}. The result dictionaries now use executors as keys as the model is now hashable.
- Loading branch information
1 parent
681ae5f
commit c03a823
Showing
3 changed files
with
101 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters