Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't do ignored work.

  • Loading branch information...
commit ac0b1bc3e3bc34892a49575cfaaa1eb24caca901 1 parent 1215c61
@rolfbjarne rolfbjarne authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  MonkeyWrench.Database/DB.cs
View
3  MonkeyWrench.Database/DB.cs
@@ -1126,7 +1126,7 @@ INNER JOIN
RevisionWork.host_id = @host_id
AND (RevisionWork.workhost_id = @workhost_id OR RevisionWork.workhost_id IS NULL)
AND RevisionWork.lane_id = @lane_id
- AND RevisionWork.state <> @dependencynotfulfilled AND RevisionWork.state <> 10
+ AND RevisionWork.state <> @dependencynotfulfilled AND RevisionWork.state <> 10 AND RevisionWork.State <> @ignore
AND RevisionWork.completed = false
ORDER BY RevisionWork.workhost_id IS NULL ASC, Revision.date DESC
LIMIT 1
@@ -1135,6 +1135,7 @@ LIMIT 1
DB.CreateParameter (cmd, "lane_id", lane.id);
DB.CreateParameter (cmd, "workhost_id", workhost.id);
DB.CreateParameter (cmd, "dependencynotfulfilled", (int) DBState.DependencyNotFulfilled);
+ DB.CreateParameter (cmd, "ignore", (int) DBState.Ignore);
using (IDataReader reader = cmd.ExecuteReader ()) {
if (reader.Read ())
result = new DBRevisionWork (reader);
Please sign in to comment.
Something went wrong with that request. Please try again.