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

Add method to run job and wait for result #229

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

Renrut5
Copy link

@Renrut5 Renrut5 commented Aug 13, 2024

closes #32

@Renrut5 Renrut5 changed the title add run_and_wait method Add method to run job and wait for result Aug 13, 2024
@Renrut5 Renrut5 marked this pull request as ready for review August 15, 2024 17:48
@Renrut5 Renrut5 requested a review from a team August 15, 2024 17:48
joewesch
joewesch previously approved these changes Oct 10, 2024
Copy link
Contributor

@joewesch joewesch left a comment

Choose a reason for hiding this comment

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

@Renrut5 it looks like you have some conflicts now due to some merged PRs, but otherwise this LGTM. Thank you.

@Renrut5
Copy link
Author

Renrut5 commented Oct 10, 2024

@joewesch rebased and updated.

Comment on lines +700 to +706
>>> nb.extras.jobs.run_and_wait(
class_path="local/data_quality/VerifyHostnames",
data={"hostname_regex": ".*"},
commit=True,
interval=5,
max_rechecks=10,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add an example of setting the response to a variable and maybe how they can use the response in a meaningful way (e.g., printing something)?

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 method to easily run a Job from pynautobot
2 participants