next_updates
This commit is contained in:
@@ -37,11 +37,18 @@ class Job(db.Model):
|
||||
reuse_results = db.Column(db.Boolean, default=False)
|
||||
results_path = db.Column(db.String(500), nullable=True)
|
||||
|
||||
# Phase 2 Remote Tracking
|
||||
remote_queue_id = db.Column(db.String(50), nullable=True)
|
||||
remote_task_ids = db.Column(db.Text, nullable=True) # JSON string: {scenario_name: task_id}
|
||||
remote_results = db.Column(db.Text, nullable=True) # JSON string: {scenario_name: [status, link]}
|
||||
queue_log = db.Column(db.Text, nullable=True)
|
||||
|
||||
def get_status_icon(self):
|
||||
icons = {
|
||||
'in_progress': '🟠',
|
||||
'passed': '🟢',
|
||||
'failed': '🔴',
|
||||
'waiting': '⌛',
|
||||
'in_progress': '🔄',
|
||||
'passed': '✅',
|
||||
'failed': '❌',
|
||||
'aborted': '⚫'
|
||||
}
|
||||
return icons.get(self.status, '⚪')
|
||||
|
||||
Reference in New Issue
Block a user