Add isChannel column and meta attribute.
This is to properly separate channels from regular jobs and also make sure that we can always iterate on them, no matter whether the build has failed. The reason why we were not able to do this until now was because we were iterating on the build products, and whenever some constituent of a channel job has failed, we didn't get a build output. So whenever there is a meta.isHydraChannel, we can now properly distinguish it from the other jobs. I still don't have any clue, why "make -C src/sql update-dbix" without *any* modifications tries to create additional schema definitions. But I've checked the md5sums of the existing schema definitions and they don't seem to match, so it seems that they already have been tampered with. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
@ -127,6 +127,7 @@ static void findJobsWrapped(EvalState & state, JSONObject & top,
|
||||
res.attr("schedulingPriority", drv.queryMetaInt("schedulingPriority", 100));
|
||||
res.attr("timeout", drv.queryMetaInt("timeout", 36000));
|
||||
res.attr("maxSilent", drv.queryMetaInt("maxSilent", 7200));
|
||||
res.attr("isChannel", drv.queryMetaBool("isHydraChannel", false));
|
||||
|
||||
/* If this is an aggregate, then get its constituents. */
|
||||
Bindings::iterator a = v.attrs->find(state.symbols.create("_hydraAggregate"));
|
||||
|
Reference in New Issue
Block a user