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

Remove extra scheduler state save that does nothing #14396

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

AlanCoding
Copy link
Member

SUMMARY

While I was looking at #14394 I couldn't figure out what was happening, but I did find this one gigantic red flag.

This save seems to have been introduced in 13c89ab and it didn't make sense then either.

Between the two state.save() calls, there is no change made to the state object. So what's the point of the save? The timestamp doesn't change from one to the other. The line just re-saves the existing data on the object and seems to be completely pointless.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

Copy link
Member

@relrod relrod left a comment

Choose a reason for hiding this comment

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

Maybe it was a nod to the old UNIX days where you had to sync; sync; sync before you umounted anything, to make sure caches were written out to disk. Except here it was save; save; save

@AlanCoding AlanCoding merged commit ab3ceae into ansible:devel Aug 31, 2023
15 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants