engine: Rewrite the core algorithm
The engine core had some unfortunate bugs that were the result of some early design errors when I wasn't as familiar with channels. I've finally rewritten most of the bad parts, and I think it's much more logical and stable now. This also simplifies the resource API, since more of the work is done completely in the engine, and hidden from view. Lastly, this adds a few new metaparameters and associated code. There are still some open problems left to solve, but hopefully this brings us one step closer.
This commit is contained in:
@@ -1387,13 +1387,15 @@ func TestAstInterpret0(t *testing.T) {
|
||||
stringptr := "this is meta"
|
||||
x.StringPtr = &stringptr
|
||||
m := &engine.MetaParams{
|
||||
Noop: true, // overwritten
|
||||
Retry: -1,
|
||||
Delay: 0,
|
||||
Poll: 5,
|
||||
Limit: 4.2,
|
||||
Burst: 3,
|
||||
Sema: []string{"foo:1", "bar:3"},
|
||||
Noop: true, // overwritten
|
||||
Retry: -1,
|
||||
Delay: 0,
|
||||
Poll: 5,
|
||||
Limit: 4.2,
|
||||
Burst: 3,
|
||||
Sema: []string{"foo:1", "bar:3"},
|
||||
Rewatch: false,
|
||||
Realize: true,
|
||||
}
|
||||
x.SetMetaParams(m)
|
||||
graph.AddVertex(t1)
|
||||
@@ -1411,10 +1413,14 @@ func TestAstInterpret0(t *testing.T) {
|
||||
limit => 4.2,
|
||||
burst => 3,
|
||||
sema => ["foo:1", "bar:3",],
|
||||
rewatch => false,
|
||||
realize => true,
|
||||
reverse => true,
|
||||
autoedge => true,
|
||||
autogroup => true,
|
||||
},
|
||||
Meta:noop => true,
|
||||
Meta:reverse => true,
|
||||
Meta:autoedge => true,
|
||||
Meta:autogroup => true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user