Problem with scheduled endpoint and Cache variable

Hi,

I’ve got a strange issue with a scheduled endpoints outputting to a cache:variable. The variable doesn’t seem to get passed through to the dashboard.
If I run the dashboard straight from a powershell console I can see the variable in that PS session and the schedule seems to work as the variable is updated.

Also, if I stop and start the dashboard from the within the same PS session/console the page works and the variable data is displayed ok.

Endpoint code:

$FiveMinSchedule = New-UDEndpointSchedule -Every 5 -Minute
$ProvUsersEndpoint = New-UDEndpoint -Schedule $FiveMinSchedule -Endpoint {
$Cache:provisionedusers = Invoke-RestMethod -Method Get -Uri $UserAccountReportTableSASuri -Headers $AzTableSASHeaders}

Passed to dasboard:

Start-UDDashboard -Port 1000 -Endpoint $ProvUsersEndpoint -Dashboard $MyDashboard

Cache variable in PS session:
png

Same happens in an Azure Webapp. Looking at elements in the chrome dev tools, the content is just blank - until I start and stop the dashboard, but obviously can’t do that in the web app.

I’m currently referencing it in a UDTable but It doesn’t seem to be available in any control:

New-UDCollapsible -Id “UserCollapsible” -Items {
$Cache:provisionedusers.value | Sort-Object Timestamp -Descending | Select-Object -First 100 | ForEach-Object {
$dt = $PSItem.Timestamp | Get-Date -Format “dd/MM/yyyy HH:mm”
$ItemTitle = ‘{0} | {1} | {2}’ -f $dt, $PSItem.EmployeeId, $PSItem.cn
$UserDetails = $PSItem
$ItemDetails = @{}
$UserDetails.PSObject.Properties | ForEach-Object {
$ItemDetails.Add($PSItem.Name, $PSItem.Value)
}
New-UDCollapsibleItem -Title $ItemTitle -Id “UserCollapsibleItem” -Icon user -Content {
New-UDTable -Title $UserDetails.cn -Id “UserDetailsTable” -Headers @(" ", " ") -Endpoint {
$ArgumentList[0].GetEnumerator() | Out-UDTableData -Property @(“Name”, “Value”)
} -ArgumentList $ItemDetails
}
}
}

Can you try to enable UD logging to see if there is any relevant info there? Certainly seems like the scheduled endpoint isnt running.

Hi @adam

Here is the log file for the dashboard starting, I’m not too sure what it should look like though.

The $Cache:provisionedusers variable from the scheduled endpoint does exist in the PS console that launched the dashboard but I can’t seem to reference it until I stop and start the dashboard again?

11:35:56 [Info] StartDashboardCommand - C:\Repos\dashboard-local.ps1 - False
11:35:56 [Debug] StartDashboardCommand {“id”:“00000000-0000-0000-0000-000000000000”,“Title”,“NavBarColor”:null,“NavBarFontColor”:null,“BackgroundColor”:null,“FontColor”:null,“FontIconStyle”:“FontAwesome”,“NavbarLinks”:[{“text”:“Sign out”,“url”:"/.auth/logout",“icon”:“sign-out”,“openInNewWindow”:false,“type”:“link”,“color”:null}],“Scripts”:null,“Stylesheets”:null,“Pages”:[{“type”:“page”,“name”:“Home”,“url”:null,“defaultHomePage”:false,“icon”:“home”,“components”:[{“tag”:“div”,“attributes”:{“className”:“row”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“col s9”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card small ud-card”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:"card-title "},“events”:[],“content”:[“Home”],“type”:“element”,“key”:“74695f24-c087-4887-bbc4-5bb9afaa81fd”,“onMount”:null,“id”:“b1fa9c58-222f-43ff-aa97-5d620de25fbc”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“left-align”},“events”:[],“content”:[{“tag”:“h5”,“events”:[],“content”:[{“tag”:“p”,“attributes”:{“style”:{“color”:“rgba(255, 255, 255, 1)”}},“events”:[],“content”:[“Please choose the desired page from the hamburger menu above”],“type”:“element”,“key”:“02ae86aa-57a1-402f-9146-1214f4c0658f”,“onMount”:null,“id”:“7924029d-a710-4231-a116-20d0bd519ed5”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“ed1ae221-0688-475c-b491-9d48836f4048”,“onMount”:null,“id”:“d2b1534d-b046-44ec-a78c-86c10d15294c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“13fbd627-06f3-446e-9838-31b4d6c16ac4”,“onMount”:null,“id”:“2549956c-9f4b-4edb-8ef3-b6b3e0bbbdaa”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“c5248707-6e06-458c-a4f3-7e860a58e0df”,“onMount”:null,“id”:“730617fe-ad4a-49c4-9e20-0dff67cc50b4”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“card-action”},“events”:[],“content”:[{“text”:“Hamburgers”,“url”:“https://en.wikipedia.org/wiki/Hamburger_button",“icon”:“external-link”,“openInNewWindow”:true,“type”:“link”,“color”:"rgba(255, 140, 0, 1)”}],“type”:“element”,“key”:“3f18b1c3-65a0-436f-b288-4e482f1eb42a”,“onMount”:null,“id”:“ea465397-8020-4702-b6ff-6e4cdfec80f6”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“5d9db504-8775-44cb-aac8-2be1bdf0a776”,“onMount”:null,“id”:“632327f7-416c-43d3-addc-017761abda86”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“f9ee1de9-04ca-47d3-83cb-8eb8008fb7b8”,“onMount”:null,“id”:“18822f12-8f5f-4d14-9ec5-98386c9c0419”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“col s3”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card small ud-card”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:"card-title “},“events”:[],“content”:[“Resources”],“type”:“element”,“key”:“85f864d3-d54c-486c-b757-a13259191a62”,“onMount”:null,“id”:“ea208847-7407-4f7b-8ee0-179f56d1cd2d”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“left-align”},“events”:[],“content”:[{“text”:“Dashboard Source Repository”,“url”:”,“icon”:“code-fork”,“openInNewWindow”:true,“type”:“link”,“color”:“rgba(255, 255, 255, 1)”}],“type”:“element”,“key”:“4fee4bc3-ba08-4e5c-9c26-7998661ca813”,“onMount”:null,“id”:“74d0a2c1-96b6-4d99-87ed-b77acd0b3549”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“7608d3df-fc63-49ac-99c3-252cf644cf82”,“onMount”:null,“id”:“7a3a79a7-7d5c-4231-b721-ef9f7313dcce”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“49190080-b21b-4c8e-8312-241d7555ad72”,“onMount”:null,“id”:“a451ea39-5cd0-457d-a290-545d6a16d99a”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“ba80929b-1414-47d7-ab6b-77d349a32038”,“onMount”:null,“id”:“8f21f570-01a3-41b1-9718-be7f8e25403a”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“77b5bd74-566d-48e7-a70e-28f520a5db19”,“onMount”:null,“id”:“ec2464e5-62f5-4894-9117-ecb54a8e926f”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“dynamic”:false,“id”:“8275f93b-1474-4441-98b8-315b3b765d50”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“type”:“page”,“name”:“Azure MFA Tokens”,“url”:null,“defaultHomePage”:false,“icon”:“key”,“components”:[{“tag”:“div”,“attributes”:{“className”:“card ud-card”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:"card-title "},“events”:[],“content”:[“To-Do”],“type”:“element”,“key”:“1d92e763-c548-47c7-bc8b-8a74e45907ae”,“onMount”:null,“id”:“c59f64ce-f45c-4128-8fd7-7d8808e5b479”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“left-align”},“events”:[],“content”:[“Upload / View token details from Infra-KeyVaults/InfraAutomation-kv01”,{“tag”:“br”,“events”:[],“type”:“element”,“key”:“a0d383b4-afce-4bc3-8c9e-7f65eb07aeef”,“onMount”:null,“id”:“f8d9bb80-3fdb-41ee-9c8b-f71576c90427”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“05f0f431-486b-4d31-9c3b-cdd28d40aee1”,“onMount”:null,“id”:“65fb2193-6aa6-41f0-81f5-df302b066ed6”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“02a104b5-3812-4c94-aa3c-7ba75d017e35”,“onMount”:null,“id”:“1d7843be-0bc5-488b-b78d-83ffecf9caaf”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“2d5a33c8-cef2-4f5e-90d5-a4d0a4ee6aaa”,“onMount”:null,“id”:“0618b2e1-f872-40aa-8257-fdcf3b32a1d5”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“dynamic”:false,“id”:“e5061418-a7cb-4733-8818-68419a24f657”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“type”:“page”,“name”:“Office 365 Domain Manager”,“url”:null,“defaultHomePage”:false,“icon”:“globe”,“components”:[{“tag”:“div”,“attributes”:{“className”:“card ud-card”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:"card-title "},“events”:[],“content”:[“Coming soon…”],“type”:“element”,“key”:“824f2546-bad3-42e1-b0dc-13f2378f25c5”,“onMount”:null,“id”:“7857aa36-4a20-4b44-b14f-d7d99cdcfa10”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“left-align”},“events”:[],“content”:[“Add, view, verify Office 365 domains”,{“tag”:“br”,“events”:[],“type”:“element”,“key”:“ae6db70a-0624-49d3-9732-f9e1179be43d”,“onMount”:null,“id”:“c077aa2c-6f3e-4189-99a0-798b219a5d81”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“6a87edfa-7099-4ffa-bde5-7b972e30566d”,“onMount”:null,“id”:“60fd58c5-3ff9-4c69-8aea-7a32fdd21d25”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“3bd6a144-1565-47d2-aa17-6b6cc7e95f24”,“onMount”:null,“id”:“d104f098-c424-4d74-9d2c-1605df670d98”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“a85fcd81-a23e-43e9-99d8-95c7e5b2c37f”,“onMount”:null,“id”:“24d14855-0d53-49ce-ae0a-707cf123fc07”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“dynamic”:false,“id”:“ccea967f-3f6e-454f-8432-21f416be3a7c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“type”:“page”,“name”:“User Provisioning”,“url”:null,“defaultHomePage”:false,“icon”:“users”,“components”:[{“tag”:“div”,“attributes”:{“className”:“row”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“col s3”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“row”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“col s12”},“events”:[],“content”:[{“type”:“input”,“title”:“Provision New User”,“submitText”:“Submit”,“fields”:[{“required”:false,“type”:“textbox”,“dotNetType”:null,“validOptions”:null,“placeholder”:[“Employee Id from HR”],“name”:“EmployeeId”,“value”:null,“links”:null,“okText”:“Ok”,“cancelText”:“Cancel”,“clearText”:“Clear”,“validationEndpoint”:null,“validationErrorMessage”:null},{“required”:false,“type”:“textbox”,“dotNetType”:null,“validOptions”:null,“placeholder”:[“Email address to send results”],“name”:“NotifyEmail”,“value”:null,“links”:null,“okText”:“Ok”,“cancelText”:“Cancel”,“clearText”:“Clear”,“validationEndpoint”:null,“validationErrorMessage”:null},{“required”:false,“type”:“checkbox”,“dotNetType”:null,“validOptions”:null,“placeholder”:[“Confirm”],“name”:“ConfirmNew”,“value”:null,“links”:null,“okText”:“Ok”,“cancelText”:“Cancel”,“clearText”:“Clear”,“validationEndpoint”:null,“validationErrorMessage”:null}],“backgroundColor”:null,“fontColor”:null,“validate”:false,“id”:“158d6404-f4f5-4259-ab1a-c20f69d22f09”,“refreshInterval”:0,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“19f331b4-3071-425e-bb55-28bbb5a5b1a5”,“onMount”:null,“id”:“abc61af8-c333-4045-843d-2b3bc591e84b”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“f2902aad-a039-41d9-b0e0-28ccae107283”,“onMount”:null,“id”:“f0875243-9ead-487c-b8cb-1094e6b2812f”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“4b55553e-4d81-41ad-a556-1e02bdbd45e0”,“onMount”:null,“id”:“1f0b7883-c088-4694-9bec-1634f998266a”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“col s9”},“events”:[],“content”:[{“tag”:“div”,“events”:[],“type”:“element”,“key”:“c829dba4-be28-4faa-8597-80ff005177cd”,“onMount”:null,“id”:“LoadingGrid”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true},{“tag”:“div”,“attributes”:{“className”:“row”},“events”:[],“type”:“element”,“key”:“f92da90a-7abd-48d6-beef-11f246e66112”,“onMount”:null,“id”:“bd9ccd29-1712-469e-98ef-a796a6ac5e84”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“08cfd233-d424-4934-b995-6acac066d97e”,“onMount”:null,“id”:“6cdd0bae-3a2b-4fd5-8076-5427cc285497”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“b5d218d5-eead-4a11-bee3-a9ef72b67e6f”,“onMount”:null,“id”:“fe340198-9f22-4f61-88a9-b516ab271e85”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“row”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“col s3”},“events”:[],“content”:[],“type”:“element”,“key”:“63fd0820-bfa2-4c0a-bdc0-09326aeeaf61”,“onMount”:null,“id”:“962ea5cc-79ad-4c55-8a0d-b9a3ce33ad55”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“div”,“attributes”:{“className”:“col s9”},“events”:[],“content”:[{“tag”:“h5”,“attributes”:{“style”:{“color”:“rgba(255, 255, 255, 1)”}},“events”:[],“content”:[“Provisioned Users”],“type”:“element”,“key”:“b070522f-2bba-4764-938b-acc148d05892”,“onMount”:null,“id”:“d78bbefd-32be-44f9-875a-a23a3ad8cfd8”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“ul”,“attributes”:{“className”:“collapsible ud-collapsible”,“style”:{“backgroundColor”:“rgba(255, 255, 255, 1)”,“color”:“rgba(0, 0, 0, 1)”},“data-collapsible”:“expandable”},“events”:[],“content”:[],“type”:“element”,“key”:“8a176b68-301a-4e37-8c13-337601203986”,“onMount”:null,“id”:“UserCollapsible”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“b1c46e0e-20f3-44d5-93ba-d5806054307c”,“onMount”:null,“id”:“34b5525f-6487-44e5-8b08-374c3c79cfa6”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“153c3ac4-3c84-4a59-abc7-b38da091411d”,“onMount”:null,“id”:“b4e82830-4f29-430e-a3e2-aec0f4882a55”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“dynamic”:false,“id”:“dd10d8be-4f95-4704-a8b3-f0fcaf5198b3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“CyclePages”:false,“CyclePagesInterval”:10,“Error”:null,“Design”:false,“Footer”:null,“NavBarLogo”:null,“Demo”:false,“geolocation”:false,“FilterText”:null}
11:35:56 [Debug] CustomAssemblyLoadContext Pointer Size:8
11:35:56 [Debug] CustomAssemblyLoadContext Loading files in native directory: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.Community\2.2.1\net472\runtimes\win-x64\native
11:35:56 [Debug] CustomAssemblyLoadContext Loading file: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.Community\2.2.1\net472\runtimes\win-x64\native\libuv.dll
11:35:56 [Debug] CustomAssemblyLoadContext Loading file: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.Community\2.2.1\net472\runtimes\win-x64\native\Microsoft.DiaSymReader.Native.amd64.dll
11:35:57 [Debug] DashboardBuilder Adding endpoint:
11:35:57 [Debug] DashboardBuilder Adding endpoint:
11:35:57 [Debug] DashboardBuilder Adding endpoint:
11:35:57 [Debug] EndpointService Register() 158d6404-f4f5-4259-ab1a-c20f69d22f09
11:35:57 [Debug] EndpointService Unregister() 158d6404-f4f5-4259-ab1a-c20f69d22f09
11:35:57 [Debug] EndpointService Register() LoadingGrid
11:35:57 [Debug] EndpointService Unregister() LoadingGrid
11:35:57 [Debug] EndpointService Register() bd9ccd29-1712-469e-98ef-a796a6ac5e84
11:35:57 [Debug] EndpointService Unregister() bd9ccd29-1712-469e-98ef-a796a6ac5e84
11:35:57 [Debug] EndpointService Register() c95dd999-cbff-49d1-8d9b-02f3de789d82
11:35:57 [Debug] ExecutionService ExecutionService constructor
11:35:57 [Info] Quartz.Impl.StdSchedulerFactory Using object serializer: Quartz.Simpl.BinaryObjectSerializer, Quartz
11:35:57 [Debug] Quartz.Simpl.TaskSchedulingThreadPool TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
11:35:57 [Info] Quartz.Core.SchedulerSignalerImpl Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
11:35:57 [Info] Quartz.Core.QuartzScheduler Quartz Scheduler v.3.0.6.0 created.
11:35:57 [Info] Quartz.Simpl.RAMJobStore RAMJobStore initialized.
11:35:57 [Info] Quartz.Core.QuartzScheduler Scheduler meta-data: Quartz Scheduler (v3.0.6.0) ‘QuartzScheduler’ with instanceId ‘NON_CLUSTERED’
Scheduler class: ‘Quartz.Core.QuartzScheduler’ - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool ‘Quartz.Simpl.DefaultThreadPool’ - with 10 threads.
Using job-store ‘Quartz.Simpl.RAMJobStore’ - which does not support persistence. and is not clustered.

11:35:57 [Info] Quartz.Impl.StdSchedulerFactory Quartz scheduler ‘QuartzScheduler’ initialized
11:35:57 [Info] Quartz.Impl.StdSchedulerFactory Quartz scheduler version: 3.0.6.0
11:35:57 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler_$_NON_CLUSTERED started.
11:35:57 [Debug] Quartz.Core.QuartzSchedulerThread Batch acquisition of 0 triggers
11:35:58 [Debug] Quartz.Core.QuartzSchedulerThread Batch acquisition of 1 triggers
11:35:58 [Debug] Quartz.Simpl.SimpleJobFactory Producing instance of Job ‘DEFAULT.fd235017-cbe6-4a4b-8bb6-ee02ba79f48e’, class=UniversalDashboard.Execution.ScheduledEndpointJob
11:35:58 [Debug] Quartz.Core.QuartzSchedulerThread Batch acquisition of 0 triggers
11:35:58 [Debug] Quartz.Core.JobRunShell Calling Execute on job DEFAULT.fd235017-cbe6-4a4b-8bb6-ee02ba79f48e
11:35:58 [Debug] ExecutionService Context variables--------------
11:35:58 [Debug] ExecutionService MemoryCache = Microsoft.Extensions.Caching.Memory.MemoryCache
11:35:58 [Debug] ExecutionService DashboardHub = Microsoft.AspNetCore.SignalR.Internal.HubContext`1[UniversalDashboard.DashboardHub]
11:35:58 [Debug] ExecutionService Cache = Microsoft.Extensions.Caching.Memory.MemoryCache
11:35:58 [Debug] ExecutionService StateRequestService = UniversalDashboard.Services.StateRequestService
11:35:58 [Debug] ExecutionService ConnectionId =
11:35:58 [Debug] ExecutionService SessionId =
11:35:58 [Debug] ExecutionService ArgumentList =
11:35:58 [Debug] ExecutionService UDPage =
11:35:58 [Debug] Quartz.Core.JobRunShell Trigger instruction : NoInstruction

I think that I may be encountering the same issue, but not sure. I have a dashboard with several scheduled endpoints, all of which cache some data. When I launch the dashboard, some of the elements that use this data work, and others don’t. Most likely some of the endpoints take longer to return data.

No amount of refreshing the page seems to return any data for these elements. However, when I stop and start the dashboard again, all the elements work. Does this sound like the same problem?

I should also note that I’m only currently testing this in a PowerShell console, and haven’t gotten as far as testing on a web server yet.

1 Like

Yep that sounds exactly like my issue. I’m afraid I haven’t found a solution yet though.

2 Likes

I also have a similar issue, I’ll sometimes have to start, stop, then restart the dashboard to get all components working.

1 Like

I have similar issue too

Are you using the -autoreload parameter when starting the dashboard, if not then this will cause endpoints not to work from the testing I done

1 Like

when I put -autorealod, it works on and off

$Schedule = New-UDEndpointSchedule -Every 1 -Second
$Endpoint = New-UDEndpoint -Schedule $Schedule -Endpoint {
$Cache:Products = 88 # Change the value here and save
}

$Dashboard = New-UDDashboard -Title “Cached Products” -Content {
New-UDCounter -Title “Number of Products” -Endpoint {
$Cache:Products
}
}

Start-UDDashboard -Dashboard $Dashboard -Port 8080 -Endpoint $Endpoint -AutoReload

I found the custom enum list I built for the select list to be pre-populated from SQL did not work in an endpoint :frowning: but using SQL with cache variables and displaying the data in a grid works great…

Hello @mattmcnabb Were you able to find a solution for this? I am facing similar issue. In Page#2 of my dashboard I have a button which calls powershell script on a remote machine to stop services. After that, I kept a sleep for 10 secs and use UDRedirect to go page#1 where I can see service status. At times, the page#1 doesn’t have the status information (running or stopped), it shows blank. I am displaying status information using endpoint and cache variable.

Hello @theabraxas Were you able to find a solution for this? I am facing similar issue. In Page#2 of my dashboard I have a button which calls powershell script on a remote machine to stop services. After that, I kept a sleep for 10 secs and use UDRedirect to go page#1 where I can see service status. At times, the page#1 doesn’t have the status information (running or stopped), it shows blank. I am displaying status information using endpoint and cache variable.