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

Test-PodeTaskCompleted always returns false? #1240

Open
plk opened this issue Feb 12, 2024 · 1 comment
Open

Test-PodeTaskCompleted always returns false? #1240

plk opened this issue Feb 12, 2024 · 1 comment

Comments

@plk
Copy link
Contributor

plk commented Feb 12, 2024

I am running an async task from one endpoint and getting the status using another endpoint which uses the task name. I want to return the results from the async task when it's finished but Test-PodeTaskCompleted always seems to return false,even when the asynce task scriptblock is finished?

@Badgerati
Copy link
Owner

This is similar to an issue just raised (#1249), the underlying cause is that Get-PodeTask returns the base task definition created by Add-PodeTask, and not a processing task object like Invoke-PodeTask returns.

(linked to #1037)

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

No branches or pull requests

2 participants