webchanges.worker module
The worker that runs jobs in parallel. Called from main module.
- webchanges.worker.run_jobs(urlwatcher, read_only=False)
Process (run) jobs in parallel.
- Parameters:
urlwatcher (Urlwatch) – The
Urlwatchorchestrator.read_only (bool) – If True, skip every
job_state.save()call so the snapshot DB is unchanged. Used by--test-reporter+ joblist to preview a reporter without committing new snapshots.
- Raises:
IndexError – If any index(es) is/are out of range.
- Return type:
None
- webchanges.worker.get_virt_mem_mib()
Return the amount of virtual memory available.
This is the memory that can be given instantly to processes without the system going into swap.
- Returns:
The amount of virtual memory available in MiB (IEC).
- Return type:
float