betty.job module

Provide utilities for running jobs concurrently.

class betty.job.Context(localizer=None)[source]

Bases: object

Parameters:
localizer=None

property cache : Cache[Any]

Provide a cache for this job context.

The cache is volatile and will be discarded once the job context is completed.

claim(job_id)[source]
Parameters:
job_id

Return type:

bool