I have a simple AgGrid dashboard. It’s getting updated from a csv file with the interval component. screener() function is scheduled to recreate that csv file at specific times.
Now i need to show updated datatable whenever someone visit or refresh the dashboard page.
However this code brings the first version of the dashboard.
I tried to use local store component. And i think because of this interval component doesn’t work on time when i deploy it as a web app. It triggers interval for all new sessions.
What i want to do is I need to serve latest dashboard for all new sessions.
Update works just fine. I load the same file with the layout and that is getting updated with screener function(which is scheduled). However when I visit the dashboard lets say from another browser i see the initial datatable before the updates.
edit: even if i manually edit the csv file and refresh the page i see the unedited csv file on dashboard.
TF PC AC OC UN
0 D 2023-09-27 2023-09-28 2023-09-29 2023-09-29
1 3D 2023-09-19 2023-09-22 2023-09-27 2023-09-29
2 W 2023-09-11 2023-09-18 2023-09-25 2023-09-29
3 2W 2023-08-28 2023-09-11 2023-09-25 2023-10-06
4 M 2023-07-03 2023-08-01 2023-09-01 2023-09-29
Result is the same. Scheduler is a different process and i need to seperate that function from the dash as it is an expensive process and needs to run at specific times.
I commented out entire schedule section and this time it worked. I couldn’t understad how it works? Why schedule prevents other sessions to browse updated data?