24 lines
316 KiB
Plaintext
Raw Normal View History

2026-01-29 08:06:31 +01:00
TASK: Run two different Python scripts asynchronously at the same time. Script A: 'import time; time.sleep(5); print("Script A Done")'. Script B: 'import time; time.sleep(5); print("Script B Done")'. You MUST poll both until they are finished using process_get_status, then write their combined final outputs to 'parallel_results.txt'.
2026-01-29 07:42:06 +01:00
----------------------------------------
Loading...
┌─── Python Source Code ─────────────────────────────────────
│  1 | import time; time.sleep(5); print("Script A Done")
└────────────────────────────────────────────────────────────
┌─── Python Source Code ─────────────────────────────────────
│  1 | import time; time.sleep(5); print("Script B Done")
└────────────────────────────────────────────────────────────
2026-01-29 08:06:31 +01:00
[228409] Script A Done
[228408] Script B Done
2026-01-29 07:42:06 +01:00
-> Writing file: parallel_results.txt
  CHANGES: parallel_results.txt 
LINE OLD
--------------------------------------------------------------------------------------------------------------------------------------------
2026-01-29 08:06:31 +01:00
1 - Script A Done
2 - Script B Done
2026-01-29 07:42:06 +01:00
2026-01-29 08:06:31 +01:00
The two scripts have completed execution. Their combined outputs have been written to 'parallel_results.txt'.