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

Harvest auto schedule #1114

Merged
merged 2 commits into from Sep 9, 2017
Merged

Harvest auto schedule #1114

merged 2 commits into from Sep 9, 2017

Conversation

noirbizarre
Copy link
Contributor

This PRs ensures that validated harvest sources are automatically scheduled (using the HARVEST_DEFAULT_SCHEDULE setting which is a cron expression) and that they can be rescheduled.

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

One thing I might have missed: since there is a default crontab, where/how can it be overloaded?

@@ -153,28 +154,33 @@ def preview(ident):
return backend.harvest()


def schedule(ident, minute='*', hour='*',
def schedule(ident, cron=None, minute='*', hour='*',
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need the other karkgs? minute, hour...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we need it, udata harvest schedule command line use it.

@noirbizarre
Copy link
Contributor Author

Right now in this PR, you can only change it from the commandline (before you could only set it, this PRs ensure it can be changed).
This PR is part of a bigger branch splitted in multiple PR. The next one to come on the subject expose the schedule information in the Harvest API payload and allows to set, change and unset it. An admin interface to set this is also provided in this coming PR.

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

👌

@noirbizarre noirbizarre merged commit 5c5b4be into opendatateam:master Sep 9, 2017
@noirbizarre noirbizarre deleted the harvest-auto-schedule branch September 9, 2017 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants