-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
[Plugin] Regenerate Existing ImagesIssues for the Regenerate Existing Images moduleIssues for the Regenerate Existing Images module
Description
Create a new Perflab_Background_Job
class to represent a single job and provide methods for accessing it's data.
Acceptance Criteria
- Create a new
Perflab_Background_Job
class - The
__construct()
method should accept 1 parameter$term
- Can either be the Job term ID or term object
- The class should have the following methods
update_data( array $data )
- This method will update the jobsjob_data
term metadata()
This method will return an array of the jobsjob_data
term meta.complete()
- This method will update the following term meta.job_completed_at
- Set the term meta to the current timestampjob_status
- Set the term meta to the string completed.
is_complete()
- This method will return a true if thejob_completed_at
meta is set, false if not.
Metadata
Metadata
Assignees
Labels
[Plugin] Regenerate Existing ImagesIssues for the Regenerate Existing Images moduleIssues for the Regenerate Existing Images module