Title: Add 2 parameters to Start-ThreadJob: timeout seconds, priority · Issue #26 · PowerShell/ThreadJob · GitHub
Open Graph Title: Add 2 parameters to Start-ThreadJob: timeout seconds, priority · Issue #26 · PowerShell/ThreadJob
X Title: Add 2 parameters to Start-ThreadJob: timeout seconds, priority · Issue #26 · PowerShell/ThreadJob
Description: Summary of the new feature / enhancement Add 2 parameters to Start-ThreadJob: timeout seconds, priority Proposed technical implementation details (optional) priority: A single asynchronous task has no timeout and no priority, It is very ...
Open Graph Description: Summary of the new feature / enhancement Add 2 parameters to Start-ThreadJob: timeout seconds, priority Proposed technical implementation details (optional) priority: A single asynchronous task has...
X Description: Summary of the new feature / enhancement Add 2 parameters to Start-ThreadJob: timeout seconds, priority Proposed technical implementation details (optional) priority: A single asynchronous task has...
Opengraph URL: https://github.com/PowerShell/ThreadJob/issues/26
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add 2 parameters to Start-ThreadJob: timeout seconds, priority","articleBody":"### Summary of the new feature / enhancement\r\n\r\nAdd 2 parameters to Start-ThreadJob: timeout seconds, priority\r\n\r\n### Proposed technical implementation details (optional)\r\n\r\npriority:\r\n\r\nA single asynchronous task has no timeout and no priority, It is very original.\r\n\r\nThe priority range is 1-9, and the default is 5,priority 1 will be executed first.\r\n\r\n----\r\n\r\ntimeoutseconds:\r\n\r\nFor that things, I think thread-timeout is a good medicine:\r\n\r\n* can not stop Invoke-WebRequest / Invoke-RestMethod by ctrl + c .see:\r\nhttps://github.com/PowerShell/PowerShell/issues/16145 \r\n* “Shit-mountain-code”\r\n* HANG\r\n~~The regularity of unpredictable execution time~~\r\n* Regular expression for a long time and unpredictable time.\r\n* Code executed remotely.\r\n* memory leaks\r\n* cpu 100%\r\n\r\nlike:\r\ngolang : “context.WithTimeout”\r\npython : timeout* in threading lib\r\n\r\nIt is better to add a Boolean type of parameter : -AutoRemoveJob\r\nwhether to automatically remove threadjob after timeout,\r\nparameter likes “receive-job -AutoRemoveJob”\r\nIn this way, users can only consider new thread and put ps1 script code.\r\n\r\n\r\nboth \"ForEach-Object -Parallel\" and \"Start-ThreadJob\" without timeout, This has seriously affected my development of \"kasini3000\" at present.\r\n\r\nPowershell community do a \"engine\",i do a \"car\". the car is kasini3000 and k4t .\r\nI love powershell. I want to give my opinion to the engine. \r\nI hope the engine factory can transform a better engine.\r\nI think timeoutseconds can make the ps1 script in the thread more robust.\r\nI hope powershell will become stronger and stronger.","author":{"url":"https://github.com/kasini3000","@type":"Person","name":"kasini3000"},"datePublished":"2023-01-29T07:22:00Z","url":"https://github.com/PowerShell/ThreadJob/issues/26"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a5315c2-ccfe-fcfd-0bd4-f2580bf05b83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4D0:190653:470A6:5FE2F:6AFCD8C2 |
| html-safe-nonce | ef43febec8cd04d8f4977f8859ad15efcdc23e8e2df1ad1178286996c2c1869e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEQwOjE5MDY1Mzo0NzBBNjo1RkUyRjo2QUZDRDhDMiIsInZpc2l0b3JfaWQiOiI4Nzc1MTA2ODY4OTAxODk0MzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a7e7386a058d9a73c5b9ebb9b8c6e4bd150941926f4db3472bfe57c96dc5f866 |
| hovercard-subject-tag | issue:1561162108 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/ThreadJob/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/841968ff125af6758358f0f6ff06e80a0204d8540febb88f89538ab0e8abc442/PowerShell/ThreadJob/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/841968ff125af6758358f0f6ff06e80a0204d8540febb88f89538ab0e8abc442/PowerShell/ThreadJob/issues/26 |
| og:image:alt | Summary of the new feature / enhancement Add 2 parameters to Start-ThreadJob: timeout seconds, priority Proposed technical implementation details (optional) priority: A single asynchronous task has... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kasini3000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/ThreadJob git https://github.com/PowerShell/ThreadJob.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 265675369 |
| octolytics-dimension-repository_nwo | PowerShell/ThreadJob |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 265675369 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/ThreadJob |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ff5022cc3aa767e6115451d9c322dd975506d40e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width