diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-30 13:22:50 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-30 14:25:56 +0200 |
commit | dc19f3908644d2d49f0ca97ae60d1d6f825d5dc9 (patch) | |
tree | 14121b642070f62e8178c0cbed6204e6503621ad /crates/driver/src/task.rs | |
parent | 0440d1a4b8953f9cb8a39d5c6f4f549157db41e8 (diff) | |
download | rebel-dc19f3908644d2d49f0ca97ae60d1d6f825d5dc9.tar rebel-dc19f3908644d2d49f0ca97ae60d1d6f825d5dc9.zip |
driver: skip submission of empty tasks
Diffstat (limited to 'crates/driver/src/task.rs')
-rw-r--r-- | crates/driver/src/task.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/driver/src/task.rs b/crates/driver/src/task.rs index fe9572c..6b9083b 100644 --- a/crates/driver/src/task.rs +++ b/crates/driver/src/task.rs @@ -63,6 +63,12 @@ pub struct Action { pub run: String, } +impl Action { + pub fn is_empty(&self) -> bool { + self.run.is_empty() + } +} + #[derive(Clone, Debug, Deserialize)] pub struct TaskDef { #[serde(skip)] |