I think because I'm using apscheduler
in a non-PythonAnywhere friendly way, I can't run more than one or two instances of my script without all instances of the script crashing (error below in case anyone has advice on how to solve this, I've posted about it before but got a "read the docs" type answer).
My question: Is it possible to clone my whole PythonAnywhere server somehow? I.e. like in DigitalOcean where you can simply clone an existing Droplet...?
Error submitting job "Test.main_run (trigger: interval[0:01:00], next run at: 2018-04-02 22:26:14 UTC)" to executor "default"
Traceback (most recent call last):
File "/home/tjw0000/.local/lib/python3.6/site-packages/apscheduler/schedulers/base.py", line 958, in _process_jobs
executor.submit_job(job, run_times)
File "/home/tjw0000/.local/lib/python3.6/site-packages/apscheduler/executors/base.py", line 71, in submit_job
self._do_submit_job(job, run_times)
File "/home/tjw0000/.local/lib/python3.6/site-packages/apscheduler/executors/pool.py", line 22, in _do_submit_job
f = self._pool.submit(run_job, job, job._jobstore_alias, run_times, self._logger.name)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 115, in submit
self._adjust_thread_count()
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 134, in _adjust_thread_count
t.start()
File "/usr/lib/python3.6/threading.py", line 846, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
[edit by admin: formatting]