<?php

/**
 * Cloud Actions Constants
 * Centralized location for all cloud-related constants
 */
class CloudConstants
{
    // Cron Hook Constants
    const MOVE_FROM_LOCAL_TO_CLOUD_CRON_HOOK = 'upcasted_move_from_local_to_cloud_using_cron__premium_only';
    const MOVE_FROM_CLOUD_TO_LOCAL_CRON_HOOK = 'upcasted_move_from_cloud_to_local_using_cron__premium_only';
    const CRON_RECURRENCE = 'upcasted_every_30_seconds';

    // Meta Query Constants
    const META_COMPARE_FROM_LOCAL_TO_CLOUD = 'NOT LIKE';
    const META_COMPARE_FROM_CLOUD_TO_LOCAL = 'LIKE';

    // Migration Direction Constants
    const DIRECTION_LOCAL_TO_CLOUD = 'local_to_cloud';
    const DIRECTION_CLOUD_TO_LOCAL = 'cloud_to_local';

    // Progress and Options Constants
    const PROGRESS_OPTION_KEY = 'upcasted_migration_progress';

    // Migration Lock Constants
    const LOCK_TIMEOUT = 3600; // 1 hour timeout for migration locks
    const LOCK_REFRESH_INTERVAL = 300; // 5 minutes between lock refreshes

    // Retry and Failure Constants
    const MAX_RETRY_ATTEMPTS = 5;
    const RETRY_DELAY = 30; // seconds between retry attempts
}