Skip to content
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

Merged
merged 10 commits into from
May 12, 2021
Merged

feat: flux tasks skeleton in Kapacitor #2544

merged 10 commits into from
May 12, 2021

Conversation

lesam
Copy link
Contributor

@lesam lesam commented May 4, 2021

Closes #2534

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

@lesam lesam marked this pull request as draft May 4, 2021 19:51
@lesam lesam changed the title DRAFT: feat: flux tasks in Kapacitor feat: flux tasks in Kapacitor May 11, 2021
@lesam lesam marked this pull request as ready for review May 11, 2021 16:20
@lesam lesam changed the title feat: flux tasks in Kapacitor feat: flux tasks skeleton in Kapacitor May 11, 2021
@lesam lesam requested a review from docmerlin May 11, 2021 16:22
logger *zap.Logger
}

func (d *DummyQueryService) Query(ctx context.Context, compiler flux.Compiler) (flux.ResultIterator, error) {
Copy link
Contributor Author

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.

Copy link
Contributor

@docmerlin docmerlin left a 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.

influxdb/client.go Outdated Show resolved Hide resolved
return r.close()
}

var _ io.ReadCloser = readClose{}
Copy link
Contributor

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.

Copy link
Contributor Author

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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES! Thanks.

@lesam lesam requested a review from docmerlin May 11, 2021 21:05
return nil, 0, err
}

if filter.After != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flux task basic implementation to Kapacitor
2 participants