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

Consider refactoring daemons into classes with a base Daemon class #6478

Open
rdimaio opened this issue Jan 22, 2024 · 0 comments
Open

Consider refactoring daemons into classes with a base Daemon class #6478

rdimaio opened this issue Jan 22, 2024 · 0 comments

Comments

@rdimaio
Copy link
Contributor

rdimaio commented Jan 22, 2024

Looking at the Rucio daemons (https://github.com/rucio/rucio/tree/37bb888fe6c0af8cb74cea7f36e087468185cbb8/lib/rucio/daemons), there's a few functions that are in common to many daemons. For example, run, stop and run_once are used in:

It might make sense to abstract these functions into a parent class BaseDaemon to avoid replication where possible.

@rdimaio rdimaio self-assigned this Jan 22, 2024
@rdimaio rdimaio changed the title Consider refactoring daemons into classes with a BaseDaemon base class Consider refactoring daemons into classes with a base Daemon class Jan 25, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 2, 2024
… class; rucio#6478

Initial commit where base class Daemon is created. As an initial test,
Undertaker inherits from Daemon. If tests pass, other daemons
can also be refactored to inherit from Daemon.
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 2, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 15, 2024
… class; rucio#6478

Initial commit where base class Daemon is created. As an initial test,
Undertaker inherits from Daemon. If tests pass, other daemons
can also be refactored to inherit from Daemon.
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 15, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 17, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 17, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 17, 2024
rdimaio added a commit to rdimaio/rucio that referenced this issue Feb 29, 2024
…from base class; rucio#6478

Initial commit where base class Daemon is created. As an initial test,
Undertaker inherits from Daemon. If tests pass, other daemons
can also be refactored to inherit from Daemon.
rdimaio added a commit to rdimaio/rucio that referenced this issue Mar 12, 2024
…from base class; rucio#6478

Initial commit where base class Daemon is created. As an initial test,
Undertaker inherits from Daemon. If tests pass, other daemons
can also be refactored to inherit from Daemon.
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

2 participants