How to Cancel a Task in Progress from CLI in SynetoOS 5

Written By Sebastian Sime (Draft Writer)

Updated at January 13th, 2026

→ Applies to: SynetoOS 5.x

 

Step 1. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 2. Get root privileges

sudo su -

 

Step 3. Access Chronos database

kubectl exec -it pods/postgres-postgresql-0 -- bash -c 'PGPASSWORD=$POSTGRES_PASSWORD psql --host localhost --user postgres -d chronos'

 

Step 4. List tasks (replace <tasks_number> with the number of tasks to extract)

SELECT id, name, status, created_at FROM jobs ORDER BY created_at DESC LIMIT <tasks_number>;

EXAMPLE OUTPUT

id                  |      name       |  status   |         created_at         
 550e8400-e29b-41d4-a716-446655440000 | backup_vm_prod  | running   | 2025-12-23 14:30:05.123+00
 a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6 | replication_s3  | pending   | 2025-12-23 14:15:10.456+00
 f47ac10b-58cc-4372-a567-0e02b2c3d479 | cleanup_stale   | completed | 2025-12-23 13:00:00.000+00
 d9b3f2a1-0c4e-4b8a-9d7f-6e5d4c3b2a10 | snapshot_daily  | failed    | 2025-12-23 12:00:45.789+00
 2b8e39d4-7c1a-4f5b-8e9d-0c1b2a3d4e5f | backup_vm_test  | completed | 2025-12-23 11:45:22.111+00

IMPORTANT
Save the identifier of the task to be cancelled
Take note of the identifier shown in the ID column (ES: 550e8400-e29b-41d4-a716-446655440000)

 

Step 5. Cancel the task (replace <task_ID> with the ID from Step 4)

DELETE FROM jobs WHERE id = '<task_ID>';

EXAMPLE

DELETE FROM jobs WHERE id = '550e8400-e29b-41d4-a716-446655440000';