Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job view not updating with new jobs whilst server is running #234

Open
bennthomsen opened this issue Dec 13, 2024 · 1 comment
Open

Job view not updating with new jobs whilst server is running #234

bennthomsen opened this issue Dec 13, 2024 · 1 comment

Comments

@bennthomsen
Copy link

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
@bdice
Copy link
Member

bdice commented Dec 13, 2024

Hi @bennthomsen, thanks for filing an issue. For performance reasons, projects are cached. You can update the cache by calling this method: https://docs.signac.io/projects/dashboard/en/latest/api.html#signac_dashboard.Dashboard.update_cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants