-
Notifications
You must be signed in to change notification settings - Fork 143
Create Background Processing Infrastructure: Create Perflab_Background_Job Class #503
Copy link
Copy link
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_Jobclass - 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_dataterm metadata()This method will return an array of the jobsjob_dataterm 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_atmeta is set, false if not.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Plugin] Regenerate Existing ImagesIssues for the Regenerate Existing Images moduleIssues for the Regenerate Existing Images module
Type
Fields
Give feedbackNo fields configured for issues without a type.