| | |
| | | 'progress_count' => intval($operation['progress_count'] ?? 0), |
| | | 'count' => intval($operation['count'] ?? 1), |
| | | 'retries' => intval($operation['retries'] ?? 0), |
| | | 'data' => json_decode($operation['request_data'] ?? '{}', true) |
| | | 'data' => json_decode($operation['request_data'] ?? '{}', true), |
| | | 'result' => json_decode($operation['result']??'{}', true) |
| | | ]; |
| | | |
| | | // Convert timestamps to ISO 8601 format with proper timezone |
| | |
| | | case 'cancel': |
| | | // Can only cancel pending/queued operations |
| | | if (!in_array($operation_status, ['pending', 'queued'])) { |
| | | $errors[] = "Operation {$operation_id} cannot be cancelled (status: {$operation_status})"; |
| | | // $errors[] = "Operation {$operation_id} cannot be cancelled (status: {$operation_status})"; |
| | | continue 2; |
| | | } |
| | | |