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

RFE: Implement Maximum Execution Limit for Scheduled Successful Jobs #15125

Open
8 of 9 tasks
jangel97 opened this issue Apr 22, 2024 · 1 comment
Open
8 of 9 tasks

RFE: Implement Maximum Execution Limit for Scheduled Successful Jobs #15125

jangel97 opened this issue Apr 22, 2024 · 1 comment

Comments

@jangel97
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

New Feature

Feature Summary

Context:
The current version of AWX allows users to schedule job executions, but it does not offer a way to automatically disable these schedules after a certain number of successful executions. This enhancement proposes adding a feature to limit the maximum number of executions for a schedule. For example, a user could set a schedule to run a job three times every day, but after a total of nine successful executions, the schedule should automatically disable itself. This feature would be particularly useful in managing resources and ensuring that tasks do not run indefinitely.

Consider a scenario where schedules are dynamically generated to perform specific checks a few times a day over several days. After the desired number of checks, it would be beneficial for the schedule to deactivate automatically.

Schedules in AWX function similarly to a distributed cron job. By implementing this feature, it would be akin to having a distributed version of the "at" command, enhancing the flexibility and control over task executions in AWX.

Use Case:
This feature would be beneficial in scenarios where a task is required to run only a limited number of times, such as:

  • Temporary projects or jobs that are only relevant for a certain period or a specific number of executions.
  • Compliance or policy requirements that mandate certain tasks not exceed a specified number of runs.
  • Testing environments where jobs are needed for a finite number of runs to validate behavior under controlled repetitions.

Impact:

  • Positive: Enhances control over job execution, prevents resource wastage, and improves manageability.
  • Negative: Slight increase in the complexity of the scheduling interface and additional validation required to manage the execution count.

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

RFE

Current results

RFE

Sugested feature result

RFE

Additional information

No response

@jangel97 jangel97 changed the title Implement Maximum Execution Limit for Scheduled Successful Jobs RFE: Implement Maximum Execution Limit for Scheduled Successful Jobs Apr 23, 2024
@fosterseth
Copy link
Member

we have a "end" field in the UI

image

would this work?

not sure if that accounts for job status though, and might just end after X runs, regardless if the job succeeded or failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants