-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from levibostian/strict-run-task-part-of-groups
Do not allow running of PendingTasks if it's not the first task in a group.
- Loading branch information
Showing
26 changed files
with
291 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
|
||
set -e | ||
|
||
./gradlew dokka | ||
./gradlew assembleDebug | ||
./gradlew test |
15 changes: 15 additions & 0 deletions
15
docs/wendy/com.levibostian.wendy.extension/does-error-exist.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>doesErrorExist - wendy</title> | ||
<link rel="stylesheet" href="../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../index.html">wendy</a> / <a href="index.html">com.levibostian.wendy.extension</a> / <a href="./does-error-exist.html">doesErrorExist</a><br/> | ||
<br/> | ||
<h1>doesErrorExist</h1> | ||
<a name="com.levibostian.wendy.extension$doesErrorExist(com.levibostian.wendy.service.PendingTask)"></a> | ||
<code><span class="keyword">fun </span><a href="../com.levibostian.wendy.service/-pending-task/index.html"><span class="identifier">PendingTask</span></a><span class="symbol">.</span><span class="identifier">doesErrorExist</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code> | ||
<p>Extension to <a href="../com.levibostian.wendy.service/-wendy/does-error-exist.html">Wendy.doesErrorExist</a> easily from a <a href="../com.levibostian.wendy.service/-pending-task/index.html">PendingTask</a> instance.</p> | ||
</BODY> | ||
</HTML> |
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
15 changes: 15 additions & 0 deletions
15
docs/wendy/com.levibostian.wendy.extension/is-able-to-manually-run.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>isAbleToManuallyRun - wendy</title> | ||
<link rel="stylesheet" href="../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../index.html">wendy</a> / <a href="index.html">com.levibostian.wendy.extension</a> / <a href="./is-able-to-manually-run.html">isAbleToManuallyRun</a><br/> | ||
<br/> | ||
<h1>isAbleToManuallyRun</h1> | ||
<a name="com.levibostian.wendy.extension$isAbleToManuallyRun(com.levibostian.wendy.service.PendingTask)"></a> | ||
<code><span class="keyword">fun </span><a href="../com.levibostian.wendy.service/-pending-task/index.html"><span class="identifier">PendingTask</span></a><span class="symbol">.</span><span class="identifier">isAbleToManuallyRun</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code> | ||
<p>Extension to <a href="../com.levibostian.wendy.service/-wendy/is-task-able-to-manually-run.html">Wendy.isTaskAbleToManuallyRun</a> easily from a <a href="../com.levibostian.wendy.service/-pending-task/index.html">PendingTask</a> instance.</p> | ||
</BODY> | ||
</HTML> |
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
15 changes: 15 additions & 0 deletions
15
docs/wendy/com.levibostian.wendy.service/-pending-task/is-ready-to-run.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>PendingTask.isReadyToRun - wendy</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">wendy</a> / <a href="../index.html">com.levibostian.wendy.service</a> / <a href="index.html">PendingTask</a> / <a href="./is-ready-to-run.html">isReadyToRun</a><br/> | ||
<br/> | ||
<h1>isReadyToRun</h1> | ||
<a name="com.levibostian.wendy.service.PendingTask$isReadyToRun()"></a> | ||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">isReadyToRun</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code> | ||
<p>Override this to dynamically set if this task is ready to run or not.</p> | ||
</BODY> | ||
</HTML> |
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
22 changes: 22 additions & 0 deletions
22
docs/wendy/com.levibostian.wendy.service/-wendy/is-task-able-to-manually-run.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>Wendy.isTaskAbleToManuallyRun - wendy</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">wendy</a> / <a href="../index.html">com.levibostian.wendy.service</a> / <a href="index.html">Wendy</a> / <a href="./is-task-able-to-manually-run.html">isTaskAbleToManuallyRun</a><br/> | ||
<br/> | ||
<h1>isTaskAbleToManuallyRun</h1> | ||
<a name="com.levibostian.wendy.service.Wendy$isTaskAbleToManuallyRun(kotlin.Long)"></a> | ||
<code><span class="keyword">fun </span><span class="identifier">isTaskAbleToManuallyRun</span><span class="symbol">(</span><span class="identifier" id="com.levibostian.wendy.service.Wendy$isTaskAbleToManuallyRun(kotlin.Long)/taskId">taskId</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html"><span class="identifier">Long</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code> | ||
<p>Tells you if a <a href="../-pending-task/index.html">PendingTask</a> is able to run yet or not.</p> | ||
<p>To be able to run, all of these must be true:</p> | ||
<ol><li>A <a href="../-pending-task/index.html">PendingTask</a> is not part of a group or it is the first task of a group.</li> | ||
</ol> | ||
<p>Call this before calling <a href="run-task.html">runTask</a> to avoid <a href="run-task.html">runTask</a> throwing an exception on you for it not being ready to run.</p> | ||
<h3>Exceptions</h3> | ||
<p><a name="IllegalArgumentException"></a> | ||
<code>IllegalArgumentException</code> - If the <a href="../-pending-task/index.html">PendingTask</a> for the taskId provided does not exist.</p> | ||
</BODY> | ||
</HTML> |
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
Oops, something went wrong.