clearml-server/apiserver/database/model/task/output.py
2021-05-03 17:46:00 +03:00

16 lines
409 B
Python

from mongoengine import EmbeddedDocument, StringField
from apiserver.database.fields import StrippedStringField
from apiserver.database.utils import get_options
class Result(object):
success = 'success'
failure = 'failure'
class Output(EmbeddedDocument):
destination = StrippedStringField()
error = StringField(user_set_allowed=True)
result = StringField(choices=get_options(Result))