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

Documentation for importing DesignJobs #97

Open
mzbroch opened this issue Jan 16, 2024 · 1 comment
Open

Documentation for importing DesignJobs #97

mzbroch opened this issue Jan 16, 2024 · 1 comment
Labels
type: documentation Improvements or additions to documentation

Comments

@mzbroch
Copy link

mzbroch commented Jan 16, 2024

Environment

  • design-builder version: 0.4.4

Expected Behavior

I can use Design Builder example jobs to successfully import design jobs

Observed Behavior

I followed example and documentation, however I was not able to successfully import Design Jobs

Steps to Reproduce

For the 2.0, following code allowed me to successfully import design jobs

$PLUGIN/jobs.py:

from nautobot.apps.jobs import Job, register_jobs
from nautobot_gizmo_designs.designs.networktocode import CreateNetworkToCode

register_jobs(CreateNetworkToCode)
@mzbroch mzbroch added the type: documentation Improvements or additions to documentation label Jan 16, 2024
@abates
Copy link
Contributor

abates commented Feb 9, 2024

New repo with working examples:

https://github.com/nautobot/demo-designs

I will update the design builder documentation accordingly. Note that with Nautobot 2.0 the load_jobs method is no longer required as the JOBS_ROOT and git repos are added to sys.path so relative imports in job modules are now supported natively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants