Comments (6)
I'll lower the priority on this one as you could run multiple instances of the daemon to provide service to multiple shotgun instances.
This would have the added benefit of taking down one daemon without compromising the other and keeping log files independent.
You could also be running two different versions of the daemon as long as the plugin API hasn't changed.
If this setup is enough, maybe we could even close this ticket?
Explanation
- Put daemon code files in two directories (
/apps/daemonA
and/apps/daemonB
for example) and modify the two conf files to point to two different Shotgun servers, plugin locations, log locations, id files, etc... - Symlink
/etc/init.d/daemonA
to/apps/daemonA/shotgunEventDaemon.py
- Symlink
/etc/init.d/daemonB
to/apps/daemonB/shotgunEventDaemon.py
- Setup the two independent services with chkconfig
- Create a single plugin location where you'll put your plugins (
/apps/shotgunPlugins
) - Symlink the appropriate plugins for each daemon instance:
/apps/daemonA/plugins/exampleA.py
->/apps/shotgunPlugins/exampleA.py
/apps/daemonA/plugins/exampleB.py
->/apps/shotgunPlugins/exampleB.py
/apps/daemonB/plugins/exampleB.py
->/apps/shotgunPlugins/exampleB.py
/apps/daemonB/plugins/exampleC.py
->/apps/shotgunPlugins/exampleC.py
from shotgunevents.
Possible caveat: Would the auto reload functionality still work if plugins are loaded via symlink? This would have to be tested.
from shotgunevents.
That's true. If the symlinks work for the auto reload, that would probably be sufficient, but my hunch says they probably won't. If they don't, then it requires duplicate plugins running on two different daemons and that's not ideal obviously.
Not super high priority, but would be good to have supported in some fashion eventually
from shotgunevents.
If the reload/symlink test fails. Maybe we can just run the paths through os.path.realpath()
and run reload tests on the result.
from shotgunevents.
If a plugin is a symlink to a file, auto reload still works. Just tested it.
from shotgunevents.
This solution should be added to documentation. And then issue closed.
from shotgunevents.
Related Issues (20)
- sufficiently large event files cause EOFerror on pickle load HOT 4
- Possible variable typo HOT 2
- Atomic writes of id file
- Global State of multiple shotgunEventDaemons
- Rescheduled event execution on fail (not on reload)
- Allow BACKLOG_TIMEOUT to be configured
- Handle API script name and key more secure
- Add setup.py to support standard python distribution HOT 2
- Can i set Subject Email in plugin code ?
- Trying to Run Daemon on Ubuntu 18.04 HOT 7
- EOFerror with empty eventIdFile
- Python 3 support HOT 2
- invalid python version number '2.7.15+' HOT 2
- ValueError: canβt have unbuffered text I/O HOT 4
- Windows Service, Python3 HOT 1
- How to launch unit tests for this project
- traceback.format_exc(err) doesn't work in python3 HOT 1
- can't run windows service anymore HOT 1
- CentOS : systemd - example service unit file ?
- (null): can't open file 'shotgunEventDaemon.py': [Errno 2] No such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shotgunevents.