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

read sources from a url #256

Open
valentinedwv opened this issue Jun 7, 2024 · 2 comments
Open

read sources from a url #256

valentinedwv opened this issue Jun 7, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@valentinedwv
Copy link
Member

Scheduler will be able to read a list of source from a url (in s3 for update monitoring).

Right now I think gleaner/nabu needs to be passed a configuration file that has services and sources information.
This means containers need to be loaded with a updated config file.

If gleaner could just read sources from a url, that one less piece to worry about

@valentinedwv valentinedwv added the enhancement New feature or request label Jun 7, 2024
@valentinedwv
Copy link
Member Author

#229

@valentinedwv
Copy link
Member Author

fails when --cfg is a url

gleaner batch --cfg https://oss.geocodes-aws-dev.earthcube.org/test/scheduler/configs/test/gleanerconfig.yaml --source r2r
cannot find config file. Did you 'glcon generate --cfgName XXX' 
{"file":"/Users/valentin/development/dev_earthcube/gleanerio/gleaner/internal/config/gleanerConfig.go:54","func":"github.com/gleanerio/gleaner/internal/config.ReadGleanerConfig","level":"fatal","msg":"cannot find config file. Did you 'glcon generate --cfgName XXX' ","time":"2024-06-14T09:37:16-07:00"}

internal/config/source.go ReadSourcesCSV has some url logic to get an ioreader for https://pkg.go.dev/github.com/dvln/viper#ReadConfig

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

No branches or pull requests

2 participants