I recently started running a Dashing application locally on my laptop. Rufus-scheduler handles the scheduling of the jobs that update the dashboard. I have a job scheduled to run every minute. The job spawns another process and captures the output. When I shut the lid of my laptop for a few hours, and open the lid again, I can barely use the laptop, because hundreds of processes have started up and consumed all my RAM and several gigabytes of swap. They eventually finish over the next several minutes, and I can resume using my laptop normally.
How can I configure my jobs to not be scheduled when the computer is sleeping? Or is there a better way to avoid this problem?