Test-PodeTaskCompleted
Consistently Returns $false
After Task Completion
#1249
Labels
Test-PodeTaskCompleted
Consistently Returns $false
After Task Completion
#1249
Bug Description
When using Pode to run asynchronous tasks, I've encountered an issue where
Test-PodeTaskCompleted
returns$false
for a task, even after ensuring the task has had sufficient time to complete. This occurs in a scenario where a task is added and invoked, and after a deliberate delay (longer than the task's expected completion time),Test-PodeTaskCompleted
is used to check the task's completion status.Steps to Reproduce
GET /start-task
endpoint through a browser or a tool likecurl
.Expected Behavior
After the task has been given enough time to complete (in this case, 5 seconds of task execution followed by a 10-second script delay),
Test-PodeTaskCompleted
should return$true
, indicating the task has been completed.Actual Behavior
Test-PodeTaskCompleted
returns$false
, suggesting the task has not been completed, despite the sufficient wait time provided.The issue I think, is related to
Get-PodeTask
that doesn't return information regarding therunspace
.Sample Code
The text was updated successfully, but these errors were encountered: