-
Notifications
You must be signed in to change notification settings - Fork 16
Executor #419
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
Open
koerberm
wants to merge
49
commits into
geo-engine:main
Choose a base branch
from
koerberm:executor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Executor #419
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
50623b5
Proof of concept
koerberm f1cda0f
Merge branch 'master' into executor
koerberm ad65b85
Adapted to new executor api
koerberm e03b9fd
Merge branch 'master' into executor
koerberm b622945
First draft of executor integration
koerberm f85fedc
Merge branch 'master' into executor
koerberm ec09bc3
removed clap dependency;
koerberm 1ebc788
Clarified error message when returning a stream proxied by the executor;
koerberm 30a6c58
Made executor API available in PRO only
koerberm 7cd7fd0
Removed executor/task manager from non-pro version;
koerberm d5d159b
Fixed pro import;
koerberm 7efd9fe
Introduced ReceiverStream<T> to the replay channel;
koerberm e887daa
Added test for ReceiverStream<T>
koerberm 7894ba5
Update operators/src/pro/executor/mod.rs
koerberm 714d3d5
reverted commit suggestion;
koerberm 11819ad
Made unreachable error explicit;
koerberm 6be3632
Completed test with dropped consumer;
koerberm eb1e3e9
Clippy & Typo;
koerberm b3cce36
Added docs
koerberm f9b207e
Made replay channel queue size configurable;
koerberm c23bad5
Merge remote-tracking branch 'origin/master' into executor
koerberm 937b37d
tokio time feature now in regular dependencies;
koerberm 1bc31f9
Merge branch 'spatial-resolution-fix' into executor
koerberm fe648d3
Draft for adding the QueryRectangle to the executor key;
koerberm 3c89f70
Revert "Draft for adding the QueryRectangle to the executor key;"
koerberm 377a1ad
Second draft for adding the QueryRectangle to the Executor Key;
koerberm 0d4a097
Merge branch 'master' into executor
koerberm d45ebaa
Executor: First draft for advanced result sharing (recovered previous…
koerberm f34062b
Merge branch 'master' into executor
koerberm a6dc6c6
Added ExecutorDescriptions for Vector data;
koerberm 23e1c4d
Fixed SpatialPartition2D::contains: Ensuring that equal instances con…
koerberm 82d40b2
Implementer Intersects<BoundingBox2D> for all GeometryRef types;
koerberm 851cea0
Implemented Intersects<BoundingBox2D> and Intersects<TimeInterval> fo…
koerberm d24134f
Added Debug trait to ExecutorTaskDescription, refined logging and docs;
koerberm f57d65d
New trait 'OneshotQueryProcessor' to turn a QueryProcessor into a 'st…
koerberm 115a267
Added new png-rendering which directly consumes a stream of tiles;
koerberm 016b0d5
Implemented ExecutorTaskDescriptions for Plots, Vector- and Raster st…
koerberm b4a6c0d
Added executors for all data types to the TaskManager;
koerberm 865840e
Implemented Pro-Handlers for wms and wfs that utilize the correspondi…
koerberm 0ecee9a
Fixed intersects implementations of primitives and added tests;
koerberm 9534040
Added tests for OneshotQueryProcessor implementations;
koerberm 4a40f0b
Added tests for executor task descriptions
koerberm c28f6f3
clippy;
koerberm 04d1607
Merge branch 'master' into executor
koerberm 6efff61
Snafu
koerberm 448c9c2
Renamed can_join -> is_contained_in in ExecutorTaskDescription
koerberm 693a17d
Introduced constant for the Executor task queue size;
koerberm 6bd7fad
Clarified that a submitted future always returns a result;
koerberm 4b83dea
Merge branch 'master' into executor
koerberm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use snafu::Snafu; | ||
use tokio::sync::mpsc::error::SendError; | ||
use tokio::sync::oneshot::error::RecvError; | ||
use tokio::task::JoinError; | ||
|
||
pub type Result<T> = std::result::Result<T, ExecutorError>; | ||
|
||
#[derive(Debug, Clone, Snafu)] | ||
pub enum ExecutorError { | ||
Submission { message: String }, | ||
Panic, | ||
Cancelled, | ||
} | ||
|
||
impl From<JoinError> for ExecutorError { | ||
fn from(src: JoinError) -> Self { | ||
if src.is_cancelled() { | ||
ExecutorError::Cancelled | ||
} else { | ||
ExecutorError::Panic | ||
} | ||
} | ||
} | ||
|
||
impl<T> From<SendError<T>> for ExecutorError { | ||
fn from(e: SendError<T>) -> Self { | ||
Self::Submission { | ||
message: e.to_string(), | ||
} | ||
} | ||
} | ||
|
||
impl From<RecvError> for ExecutorError { | ||
fn from(e: RecvError) -> Self { | ||
Self::Submission { | ||
message: e.to_string(), | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.