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

[3006.x] fix win_task ExecutionTimeLimit and result/error code interpretation #66442

Open
wants to merge 3 commits into
base: 3006.x
Choose a base branch
from

Conversation

hurzhurz
Copy link
Contributor

What does this PR do?

  • win_task.info: fix interpretation of unset/unlimited ExecutionTimeLimit and other unknown values.
  • fix/optimize task result and error code interpretation

What issues does this PR fix or reference?

Fixes #66347, #66441

ExecutionTimeLimit: can be nothing or "PT0S" if not used
_reverse_lookup: if not found, return "invalid value" instead of the last dict element
correct high result/error code numbers that are returned as negative numbers by win32com.
handle unknown LastTaskResult result codes.
@hurzhurz hurzhurz requested a review from a team as a code owner April 26, 2024 08:30
@hurzhurz hurzhurz requested review from whytewolf and removed request for a team April 26, 2024 08:30
@dwoz
Copy link
Contributor

dwoz commented May 1, 2024

@hurzhurz is there any possibility you can write a regression test for this change?

@hurzhurz
Copy link
Contributor Author

hurzhurz commented May 2, 2024

@dwoz ok, I gave it a try and wrote some tests. please have a look

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

Successfully merging this pull request may close these issues.

None yet

2 participants