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

fix: Switch to reading crontab file rather than run the command #3359

Merged
merged 1 commit into from
Mar 23, 2022
Merged

fix: Switch to reading crontab file rather than run the command #3359

merged 1 commit into from
Mar 23, 2022

Conversation

ryan-blakley
Copy link
Contributor

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Based on the complaints in bz 1759080, I switched the crontab specs to read the crontab files instead of running the command since it does user id look ups every time the command is ran. But by switching to simple_file the spec would be skipped if the file doesn't exist. I also added the nova_conf file as a dep for the nova_uid so that the id look up doesn't occur unless nova is installed.

* Based on the comments in bz 1759080, I switched the crontab specs to
  read the crontab files instead of running the command since it does
  user id look ups every time the command is ran. But by switching to
  simple_file the spec would be skipped if the file doesn't exist.

Signed-off-by: Ryan Blakley <[email protected]>
Copy link
Contributor

@bfahr bfahr left a comment

Choose a reason for hiding this comment

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

Just the two comments, otherwise looks good.

insights/specs/insights_archive.py Show resolved Hide resolved
insights/specs/insights_archive.py Show resolved Hide resolved
@xiangce xiangce merged commit 3535655 into RedHatInsights:master Mar 23, 2022
xiangce pushed a commit that referenced this pull request Mar 23, 2022
* Based on the comments in bz 1759080, I switched the crontab specs to
  read the crontab files instead of running the command since it does
  user id look ups every time the command is ran. But by switching to
  simple_file the spec would be skipped if the file doesn't exist.

Signed-off-by: Ryan Blakley <[email protected]>
(cherry picked from commit 3535655)
@ryan-blakley ryan-blakley deleted the update_crontab_specs_for_bz_1759080 branch October 21, 2022 13:58
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* Based on the comments in bz 1759080, I switched the crontab specs to
  read the crontab files instead of running the command since it does
  user id look ups every time the command is ran. But by switching to
  simple_file the spec would be skipped if the file doesn't exist.

Signed-off-by: Ryan Blakley <[email protected]>
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.

3 participants