Connaitre l'avancement d'une ingestion

Modifié le  Mer, 19 Juill., 2023 à 11:18 H



Change history
Initial version     10-19-2022         Initial version

Etude de cas :

Connaitre l’état d’avancement d’un média en cours d’ingestion.



Les limitations : 

  • Etre client Okast.
  • Avoir une instance Okast channels + ses credentials.
  • Un appel par instance possédée.



Interroger la file d’attente de traitement

L'URL d'appel est la suivante

http://<URL_de_mon_instance>/synthesia/okast-channels/playlist/manager/php/_getIngestStatus.php

Exemple de réponse

[
    {
        "request": {
            "filePath": "https://my_storage_system/sample_9-16_blurred_background.mp4",
            "metadataPath": "https://my_storage_system/ingest-okast.json",
            "destinationFolder": "92d53a18-f8d9-d874-f020-b57b76f7ffdf",
            "destinationFolderKind": "queueBottom"
        },
        "requestTime": "2022-1018 14:20:00",
        "lastStatusUpdate": "2022-1018 14:20:02",
        "status": "DONE"
    },
    {
        "request": {
            "filePath": "https://my_storage_system/sample_9-16_blurred_background.mp4",
            "metadataPath": "https://my_storage_system/ingest-okast.json"
        },
        "requestTime": "2022-1018 14:22:49",
        "lastStatusUpdate": "2022-1018 14:22:52",
        "status": "ERRORED",
        "statusError": "File already exists in database"
    },
    {
        "request": {
            "filePath": "https://my_storage_system/sample_9-16_blurred_background.mp4",
            "metadataPath": "https://my_storage_system/ingest-okast.json",
            "destinationFolder": "92d53a18-f8d9-d874-f020-b57b76f7ffdf",
            "destinationFolderKind": "queueBottom",
            "destinationFolderIndex": "",
            "destinationFolderIndexReplace": "",
            "reschedule": "2022-10-18"
        },
        "requestTime": "2022-1018 14:33:41",
        "lastStatusUpdate": "2022-1018 14:33:42",
        "status": "ERRORED",
        "statusError": "File already exists in database"
    },
    {
        "request": {
            "reschedule": "2022-10-19"
        },
        "requestTime": "2022-1018 15:35:17",
        "lastStatusUpdate": "2022-1018 15:35:21",
        "status": "ERRORED",
        "statusError": "file path missing"
    }
]