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 easily run a Job from pynautobot #32

Open
dgarros opened this issue Mar 4, 2022 · 2 comments · May be fixed by #229
Open

Add method to easily run a Job from pynautobot #32

dgarros opened this issue Mar 4, 2022 · 2 comments · May be fixed by #229
Assignees
Labels
hacktoberfest Good issue for Hactoberfest

Comments

@dgarros
Copy link
Contributor

dgarros commented Mar 4, 2022

it would be useful to have a method to easily start the execution of a Job with pynautobot

Something like that

>>> import pynautobot
>>> nautobot = pynautobot.api( url="https://demo.nautobot.com/", token="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
>>>
>>> job = nautobot.extras.jobs.run(class_path="xxx", commit=False, data=None, schedule=None)

Also, maybe a separate request but it would be nice to have a way to execute a Job and wait for it to finish
Something like that

>>> import pynautobot
>>> nautobot = pynautobot.api( url="https://demo.nautobot.com/", token="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
>>> job_result = nautobot.extras.jobs.run_and_wait(class_path="xxx", commit=False)
@jvanderaa jvanderaa added the hacktoberfest Good issue for Hactoberfest label Sep 26, 2022
@Renrut5
Copy link

Renrut5 commented Aug 13, 2024

@jvanderaa @jeffkala Would this be considered completed with #56 merged?

@joewesch
Copy link
Contributor

@Renrut5 it looks like the original ask was for 2 items, the second one being a way for it to run a job and wait for the result. This has not been implemented yet.

@Renrut5 Renrut5 self-assigned this Aug 13, 2024
@Renrut5 Renrut5 linked a pull request Aug 15, 2024 that will close this issue
Renrut5 added a commit to Renrut5/pynautobot that referenced this issue Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Good issue for Hactoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants