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

Stop current scheduling of task when permission denied #1058

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Apr 23, 2020

This prevents the scheduler from failing to start the task every 10 seconds
forever, when the user does not have permission to run the task. This can
happen, for example, if the task uses someone else's target, and permission
to access the target is revoked.

Note that this only affects the current attempt to run the task. If the schedule
is periodic then the scheduler will try again next time the task is due.

Requires greenbone/gvm-libs#327.

Checklist:

This prevents the schedular from failing to start the task every 10 seconds
forever, when the user does not have permission to run the task.  This can
happen, for example, if the task uses someone else's target, and permission
to access the target is revoked.
@mattmundell mattmundell changed the title Stop trying to start a scheduled task if permission was denied Stop current scheduling of task when permission denied Apr 23, 2020
@mattmundell mattmundell marked this pull request as ready for review April 23, 2020 19:52
@timopollmeier timopollmeier merged commit bf7d8e1 into greenbone:master Apr 30, 2020
@mattmundell mattmundell deleted the schedule-permission branch May 4, 2020 08:26
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