Automattic / vip-support

Manages the VIP Support Users on your site
GNU General Public License v2.0
12 stars 4 forks source link

Purge support user after 24 hours, via cron #54

Closed ethitter closed 7 years ago

ethitter commented 7 years ago

These are currently done via scheduled host actions, which we'd like to move away from.

Depends on #51 given the significant refactoring therein.

ethitter commented 7 years ago

On second thought, a job that periodically scans for support users older than 24 hours would be better. That way, there's one event regardless of how many users to purge, and a failure should be caught by the next run.

ethitter commented 7 years ago

Added bonus: Cron Control will eventually let us mark this event as "internal," and it'll get special handling/priority.

https://github.com/Automattic/Cron-Control/pull/145

ethitter commented 7 years ago

@mjangda Tests are fixed (aka, I updated to the latest and greatest from WP-CLI). I marked PHPCS as an allowed failure so we can address those independently.