Comments (5)
While re-reading this I noticed that I should put this in writing too:
I guess if we could live with saying that it is the users responsibility to always have exactly one process of each type running, we could skip the .pid file part and go straight to the internal state database.
from pyca.
My suggestion for the processes would be anyway to have them launched separately by Systemd. That way the system can ensure that things are restarted, … If you want to use SysV-init (or whatever) instead, then let that create the pid files.
A status table, it makes sense. Though here are a few thoughts:
- The single CA state is indeed a problem. I will bring it up at the CA session at the conference. I think Opencast should support a set of states for each capture agent instead.
- Having scheduler xor capturer offline should set the state to
error
since it might break recordings. I'm not so sure about the ingest part (I'm thinking about the backup mode). - Do we want a keep-alive for the state?
- All that would probably deserve another service keeping track of the ca state ;-D
from pyca.
- Single CA state: That would be the best thing, yes. With #65 That would be very easy to adapt to now.
error
: I'm not quite sure what you mean by "might break recordings." Can you elaborate?- Keep-Alive: This would be easy to implement in #65, using timestamps and a timeout config. I think that this would indeed be a good idea: When a service fails, it might fail because of outside cirumstances, which prevent it from restarting, in which case it cannot update back to
stopped
. - Agentstate service is what I did. :)
from pyca.
A keep-alive would be perfect for #48.
from pyca.
Continue keep-alive issue in #76 to keep this tidy.
from pyca.
Related Issues (20)
- Use self.assert* instead of assert
- Ubunu 20.04 HOT 8
- Document upload to PyPI
- Description for PyPI
- Use urllib.parse.urljoin HOT 2
- Event is upcoming and recording at the same time HOT 1
- Release database sessions
- Error ingesting a finished recording HOT 5
- Switch to GitHub Actions HOT 2
- Allow HLS preview
- Allow continuous preview HOT 4
- Don't store and upload metadata catalogs HOT 2
- Capturing two usb streams using pyCA HOT 7
- Creating a pyCA initiated event HOT 4
- Add ability to download files form the UI
- Could pyCA evaluate the setting of "Add live event to Opencast Media Module"? HOT 2
- Undeprecate `upload_catalogs` option HOT 1
- Update ffmpeg version in Dockerfile HOT 6
- Probe for capture devices in metrics
- installation from packages fails HOT 2
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 pyca.