Skip to content

Extract out the schedule monitoring from Schedule class #631

@pdewouters

Description

@pdewouters

The HMBKP_Scheduled_Backup class has too many responsibilities.

One functionality we can abstract out is the status monitoring.

Schedules could publish status to subscribed objects using the Observer pattern. We could have a single Backup_Monitor class or whatever that would have a collection of all running backups, and handle status changes. It would maybe make it easier to have parallel running backups with Backdrop.

Why are we writing status to a file? Could it not be a DB option?

Ha, actually suggested by Scrutinizer
https://scrutinizer-ci.com/g/humanmade/backupwordpress/code-structure/master/class/%2Bglobal%5CHMBKP_Scheduled_Backup

Thoughts? @willmot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions