Class: OpsBackups::CleanupLimitJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/ops_backups/cleanup_limit_job.rb

Overview

Cleanup job for limit backup policy

Instance Method Summary collapse

Instance Method Details

#perform(tag: "db_pg_full", limit: 14) ⇒ void

This method returns an undefined value.

Examples:

Tasks::CleanupLimit.perform_now(tag: “db_pg_full”, limit: 14)

Parameters:

  • tag (String) (defaults to: "db_pg_full")
  • limit (Integer) (defaults to: 14)


12
13
14
# File 'app/jobs/ops_backups/cleanup_limit_job.rb', line 12

def perform(tag: "db_pg_full", limit: 14)
  OpsBackups::Backup.retain_last_limit_cleanup_policy(tag: tag, limit: limit)
end