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

Search executions and retry jobs for plugins #2617

Merged

Conversation

jtobard
Copy link
Contributor

@jtobard jtobard commented Jul 12, 2017

Add the following method to JobService to be used on plugins:

  • List<ExecutionReference> searchExecutions(String state, String project, String jobUuid, String excludeJobUuid, String since);
    Returns a list of ExecutionReference. Project and state to search is mandatory (incomplete, failed, succeeded), others parameters are optional.
    since accept the Sizes.parseTimeDuration format, 1d or 5h.

  • ExecutionReference executionForId(String id, String project) throws ExecutionNotFound;
    Retrieve the information of one execution by his id and his project.

  • String startJob(JobReference jobReference, String jobArgString, String jobFilter, String asUser)throws JobNotFound;
    Starts a job (without waiting for its execution) using the jobReference information, passing jobArgString as input and jobFilter as node filter. If asUser is null, current user is assumed. Returns the Execution Id.

@gschueler gschueler added this to the 2.9.0 milestone Jul 12, 2017
@gschueler gschueler merged commit a983d0a into rundeck:prerelease-2.9.0 Jul 18, 2017
@jtobard jtobard deleted the dev/search-executions-state branch July 19, 2017 13:59
avelasquezr added a commit that referenced this pull request Jul 13, 2022
…o that it matches the start date of the job that is obtained from the DB.

Fix #2617
RUN-1041
avelasquezr added a commit that referenced this pull request Jul 20, 2022
…o that it matches the start date of the job that is obtained from the DB.

Fix #2617
RUN-1041
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.

2 participants