-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: flux tasks skeleton in Kapacitor #2544
Conversation
Including: - configuration - analytical store writes to remote influxdb - zap logging adapter
logger *zap.Logger | ||
} | ||
|
||
func (d *DummyQueryService) Query(ctx context.Context, compiler flux.Compiler) (flux.ResultIterator, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this does not yet actually run flux tasks, since we are using this dummy query service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good. Only thing I found was the comment typo.
return r.close() | ||
} | ||
|
||
var _ io.ReadCloser = readClose{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this as a way of telling the compiler to make sure that a type satisfies an interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoLand even lets you right-click this line to add method stubs if you haven't implemented them yet.
@@ -29,7 +29,7 @@ DOCKER_SAVE_DIR=${DOCKER_SAVE_DIR-$HOME/docker} | |||
# Set default parallelism | |||
PARALLELISM=${PARALLELISM-1} | |||
# Set default timeout | |||
TIMEOUT=${TIMEOUT-480s} | |||
TIMEOUT=${TIMEOUT-1000s} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES! Thanks.
return nil, 0, err | ||
} | ||
|
||
if filter.After != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm
Closes #2534
Required for all non-trivial PRs