-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add ability to schedule Git sync #275
Comments
Need to breakup into a few issues (in this priority)
|
just for clarification, when you say |
While not explicit, it is implied. Since Plugins can create jobs, and if jobs can be scheduled, you would get both. |
Once #374 gets in, we can revisit scheduling other types of operations. |
While this was in |
I think the Jobs scheduler is an interesting feature to ease the periodic trigger of Jobs (instead of relying on an external Cron job that triggers the API). |
One possibility here is to create a "system" Job specifically for triggering the sync of a given GitRepository - this job could be built in or could be provided as part of a standard |
In reference to this comment, I wanted to clarify a few things from my perspective.
This is coming in v1.2.0, so it's already accounted for, except for the caveats detailed below.
This is a very tangible use-case for a good reference implementation of tying a model instance to a recurring schedule. While that is certainly a good start, we would need to consider how this plays out for extending this to other types of "regularly occuring change events".
Same as scheduled jobs, the scheduler (Celery beat) will be usable by any caller, however we need to assert the UX and proper documentation on it (assuming we haven't already). We need to be very cautious about talking about Nautobot This controlled vocabulary is critically important to avoid confusion. There are two rising patterns here in my mind:
It's technically possible for an alternate scheduler to be used that performs "raw" Celery task execution, but it's outside of the scope of the design we're moving towards and because of our bespoke implementations of job schedules (
These two are not going to be possible without making Distributed computing is hard. |
Updated title of issue re-scope it. |
This is actually possible as for 2.0 |
Environment
Proposed Functionality
This proposal is to migrate Git repository sync to be a Nautobot Job to be able to leverage the scheduling features therein.
Use Case
As a user, I want to schedule Git repository syncs so that my export templates, config contexts, and job are always up to date.
Database Changes
TBD
External Dependencies
TBD
Requirements (In-Scope for MVP)
Non-Requirements (Out of Scope for MVP)
TODO
1.4
Future
The text was updated successfully, but these errors were encountered: