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

feat: Log addition of config watchers and make receivers unique #487

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

timmc-edx
Copy link
Member

  • Add log message for each model the ConfigWatcher is listening to, mostly so I can tell whether this app is even getting loaded.
  • Add dispatch_uid to receivers so that if ready (or connect_receivers) is called more than once, the receiver is only attached once. (This is not a response to an observed problem -- it's just a best practice according to Django docs.)

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

- Add log message for each model the ConfigWatcher is listening to, mostly
  so I can tell whether this app is even getting loaded.
- Add dispatch_uid to receivers so that if `ready` (or `connect_receivers`)
  is called more than once, the receiver is only attached once. (This is
  not a response to an observed problem -- it's just a best practice
  according to Django docs.)
@timmc-edx timmc-edx merged commit cf0527f into main Oct 31, 2023
4 checks passed
@timmc-edx timmc-edx deleted the timmc/debug-startup branch October 31, 2023 16:11
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