Knowing the progress of an ingestion

Modified on Mon, 7 Aug, 2023 at 12:48 PM



Change history
Initial version     10-19-2022         Initial version


Case study:

Knowing the progress of a media ingestion.



Limitations:

  • Be an Okast client.
  • One Okast channels instance + credentials.
  • One call per owned instance.




Query the processing queue.

The call URL is as follows



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



Example of response

[
    {
        "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"
    }
]