Add ability to add multiple jobs with same source file

This commit is contained in:
Brett Williams
2022-10-30 01:50:33 -07:00
parent a8a90d49f3
commit 5785989af4
4 changed files with 114 additions and 75 deletions

View File

@@ -110,7 +110,7 @@ def create_node_tree(all_server_data) -> Tree:
def create_jobs_table(all_server_data) -> Table:
table = Table("ID", "Project", "Output", "Renderer", Column(header="Priority", justify="center"),
table = Table("ID", "Name", "Output", "Renderer", Column(header="Priority", justify="center"),
Column(header="Status", justify="center"), Column(header="Time Elapsed", justify="right"),
Column(header="# Frames", justify="right"), "Client", show_lines=True,
box=box.HEAVY_HEAD)
@@ -135,8 +135,7 @@ def create_jobs_table(all_server_data) -> Table:
elapsed_time = job['worker'].get('time_elapsed', 'unknown')
# Project name
project_name = job_color + os.path.basename(job['worker']['input_path'])
project_name = project_name.replace(".", "[default].")
project_name = job_color + job['name']
if job_status == RenderStatus.RUNNING:
job_text = f"{job_color}[bold]Running - {float(job['worker']['percent_complete']) * 100:.1f}%"