signac-dashboard icon indicating copy to clipboard operation
signac-dashboard copied to clipboard

Job view not updating with new jobs whilst server is running

Open bennthomsen opened this issue 11 months ago • 1 comments
trafficstars

Description

When:

  1. The dash board server is running and
  2. You navigate to the jobs view and
  3. Add a new job to the signac project

This new job fails to appear in the jobs view. Refresh dopes not help. The new job does, however, appear in the project view after refresh. But no change when navigating back to the jobs view

You can restart the server and all jobs will appear.

Interestingly if you start the dashboard server. Stay on the Project pages and then add jobs and then refresh to see new jobs and then navigate to the jobs view all jobs appear. However, once you have navigated to the jobs page any new jobs that are added will not appear on the jobs page.

To reproduce

dashboard.py

To run the dashboard, execute the following command in the terminal:

$ python dashboard.py run

from signac_dashboard import Dashboard from signac_dashboard.modules import DocumentEditor, DocumentList, FileList, ImageViewer, Schema, StatepointList

modules = [ StatepointList(), DocumentList(context="JobContext"), DocumentList(context="ProjectContext"), ImageViewer(context="JobContext"), ImageViewer(context="ProjectContext"), FileList(), DocumentEditor(context="JobContext"), ]

class MyDashboard(Dashboard): def job_title(self, job): return "Device: {}, Date: {}".format(job.sp["device_id"], job.sp["job_creation"])

if name == "main": MyDashboard(modules=modules).main()

Error output

No error. Just not the required operation

System configuration

Please complete the following information:

  • Operating System: Windows 11
  • Version of Python]: 3.11.9
  • Version of signac-dashboard Version: 0.6.1

bennthomsen avatar Dec 13 '24 15:12 bennthomsen