engine: Resources package rewrite
This giant patch makes some much needed improvements to the code base. * The engine has been rewritten and lives within engine/graph/ * All of the common interfaces and code now live in engine/ * All of the resources are in one package called engine/resources/ * The Res API can use different "traits" from engine/traits/ * The Res API has been simplified to hide many of the old internals * The Watch & Process loops were previously inverted, but is now fixed * The likelihood of package cycles has been reduced drastically * And much, much more... Unfortunately, some code had to be temporarily removed. The remote code had to be taken out, as did the prometheus code. We hope to have these back in new forms as soon as possible.
This commit is contained in:
@@ -52,11 +52,11 @@ const (
|
||||
|
||||
// longTimeout is a high bound of time we're willing to wait for events.
|
||||
// If we exceed this timeout, then it's likely we are blocked somewhere.
|
||||
longTimeout = 30 // seconds
|
||||
longTimeout = 60 // seconds
|
||||
|
||||
// convergedTimeout is the number of seconds we wait for our instance to
|
||||
// remain unchanged to be considered as converged.
|
||||
convergedTimeout = 5 // seconds
|
||||
convergedTimeout = 15 // seconds
|
||||
|
||||
// dirMode is the the mode used when making directories.
|
||||
dirMode = 0755
|
||||
@@ -297,7 +297,7 @@ func (obj *Instance) Wait(ctx context.Context) error {
|
||||
for {
|
||||
select {
|
||||
// FIXME: instead of sending one event here, the recwatch
|
||||
// library should sent one initial event at startup...
|
||||
// library should send one initial event at startup...
|
||||
case <-startup:
|
||||
startup = nil
|
||||
// send an initial event
|
||||
|
||||
Reference in New Issue
Block a user