Spaces:
Sleeping
Sleeping
File size: 448 Bytes
25b2e77 5ff2739 25b2e77 |
1 2 3 4 5 6 7 |
# Run Script in Background
This space is a POC to see if we can run a Python script in the background on spaces w/o calling it from python itself.
- `your_script.py` is a script a user might submit
- `status_checker.py` checks if the script is done or not + also acts as the webserver spaces is looking for
- `start_server.sh` runs `your_script.py` via `nohup`, keeps track of the PID by setting it as env variable, then runs `status_checker.py`. |