This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-manager/flamenco/server/application/modules/workers/model.py
T
2015-03-22 00:40:51 +01:00

23 lines
788 B
Python

"""from application import db
from urllib import urlopen
class Worker(db.Model):
""Workers are the render nodes of the farm
The creation of a Worker in the database happens automatically as soon
as it connects to the server and its MAC address does not match any
of the one already present in the database.
""
id = db.Column(db.Integer, primary_key=True)
mac_address = db.Column(db.Integer())
hostname = db.Column(db.String(120))
status = db.Column(db.String(60))
warning = db.Column(db.Boolean())
config = db.Column(db.String(120))
system = db.Column(db.String(120))
ip_address = db.Column(db.String(32), unique=True)
connection = db.Column(db.String(64))
def __repr__(self):
return '<Worker %r>' % self.hostname"""