processmaker icon indicating copy to clipboard operation
processmaker copied to clipboard

defect/FOUR-17640: Script execution is now halted when timeout is reached

Open TinCodes opened this issue 1 year ago • 1 comments

Tickets Solved by this PR:

  • https://processmaker.atlassian.net/browse/FOUR-17640

Solution

  • Changed the timeout effect to 'kill' whenever the timeout is reached.

How to Test

  1. Create a script
  2. Use a sleep() function set to 20 seconds
  3. Save the script
  4. Edit the script settings so that the script timeout is 5 seconds
  5. Open a terminal
  6. Run the script and while it is running, use the command docker ps multiple times in the newly-opened terminal to verify that the execution is halted.

Code Review Checklist

  • [ ] I have pulled this code locally and tested it on my instance, along with any associated packages.
  • [ ] This code adheres to ProcessMaker Coding Guidelines.
  • [ ] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • [ ] This solution fixes the bug reported in the original ticket.
  • [ ] This solution does not alter the expected output of a component in a way that would break existing Processes.
  • [ ] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • [ ] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • [ ] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • [ ] This ticket conforms to the PRD associated with this part of ProcessMaker.

TinCodes avatar Jan 08 '25 22:01 TinCodes

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube