mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 10:42:43 +00:00 
			
		
		
		
	Merge notify into daemon
This commit is contained in:
		| @@ -434,6 +434,19 @@ class NotificationEmailData(db.Model): | ||||
|     notify_status = db.Column(db.String(16), default=None) | ||||
|     creation_date = db.Column(db.DateTime(), default=datetime.utcnow) | ||||
|  | ||||
|     def __repr__(self): | ||||
|         ''' | ||||
|         String representation of the NotificationEmailData. For human readability. | ||||
|         ''' | ||||
|         return '<NotificationData %r>' % self.id  # TODO: Why not .format()? | ||||
|  | ||||
|     def to_dict(self): | ||||
|         return {'id': self.id, | ||||
|                 'job_id': self.job_id, | ||||
|                 'job': self.job, | ||||
|                 'notify_status': self.notify_status, | ||||
|                 'creation_date': self.creation_date} | ||||
|  | ||||
|  | ||||
| class CorpusFile(db.Model): | ||||
|     ''' | ||||
|   | ||||
| @@ -52,23 +52,11 @@ services: | ||||
|       - "./logs:/home/nopaqued/logs" | ||||
|       - "../opaque_daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh" | ||||
|       - "../opaque_daemon/nopaqued.py:/home/nopaqued/nopaqued.py" | ||||
|       - "../opaque_daemon/decorators.py:/home/nopaqued/decorators.py" | ||||
|       - "../opaque_daemon/notify:/home/nopaqued/notify" | ||||
|       - "../opaque_daemon/templates:/home/nopaqued/templates" | ||||
|       - "../opaque_daemon/requirements.txt:/home/nopaqued/requirements.txt" | ||||
|       - "$HOME/.docker:/home/nopaqued/.docker" | ||||
|   notify: | ||||
|     depends_on: | ||||
|       - db | ||||
|     env_file: nopaque.env | ||||
|     extra_hosts: | ||||
|       - "host.docker.internal:172.17.0.1" | ||||
|     image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_notify:latest | ||||
|     volumes: | ||||
|       - "./logs:/home/nopaquen/logs" | ||||
|       - "../opaque_notify/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh" | ||||
|       - "../opaque_notify/nopaquen.py:/home/nopaquen/nopaquen.py" | ||||
|       - "../opaque_notify/notify:/home/nopaquen/notify" | ||||
|       - "../opaque_notify/templates:/home/nopaquen/templates" | ||||
|       - "../opaque_notify/requirements.txt:/home/nopaquen/requirements.txt" | ||||
|       - "$HOME/.docker:/home/nopaquen/.docker" | ||||
|   db: | ||||
|     env_file: nopaque.env | ||||
|     image: postgres:11 | ||||
|   | ||||
| @@ -23,6 +23,9 @@ MAIL_USE_TLS= | ||||
| MAIL_USERNAME= | ||||
| MAIL_PASSWORD= | ||||
|  | ||||
| ### Opaque Notifications ### | ||||
| OPAQUE_DOMAIN= | ||||
|  | ||||
| ### nopaque ### | ||||
| NOPAQUE_ADMIN= | ||||
| NOPAQUE_MAIL_SENDER= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user