tencent cloud

Feedback

Queues and Callbacks

Last updated: 2024-06-24 16:14:43

    Overview

    When you activate the data processing workflow service, the system will automatically create a user queue for you. When you submit a job, the job will be arranged in the queue first and executed in sequence according to the priority and order of submission. You can also set a callback rule to stay up to date with the job or workflow progress, and the system will send the processing result and status information to the specified address. The queues for different services are as follows:
    Feature Name
    Queue Name
    Media processing
    queue-1
    Speech recognition
    queue-speech-1
    File preview
    queue-doc-process-1
    Note:
    Currently, one feature supports only one queue. If you want more concurrent queues, contact us.

    Directions

    Enabling or pausing queue

    You can enable or pause a queue in its Operation column.
    1. Log in to the COS console.
    2. Select Bucket List on the left sidebar.
    3. Click the name of the bucket for video storage.
    4. On the left sidebar, select Data Processing Workflow > Common Configuration. Then, click Queues and Callbacks to enter the queue configuration page to enable or pause a queue.
    Note:
    After a queue is paused, its jobs will stop, and you cannot use the job and workflow features in the console.

    Setting callback rule

    COS supports user-defined callback URLs. After an event is completed, the system sends an HTTP POST request whose body contains notification content to a user-defined callback URL. You can use the configured callback URL to learn about the processing progress and status so that you can perform other operations as needed.
    1. Log in to the COS console.
    2. Select Bucket List on the left sidebar.
    3. Click the name of the bucket for video storage.
    4. On the left sidebar, select Data Processing Workflow > Common Configuration. Then, click Queues and Callbacks to enter the queue configuration page.
    5. Click Configure Callback Rule in the Operation column of the target queue.
    6. In the pop-up window, set the status to enable or disable callback.
    
    When enabling callback, you need to specify a URL for the system to send HTTP requests. For more information on callback, see Callback content.

    Callback content

    After a job is completed, the system will send the following callback content to the configured callback URL:
    <Response>
    <JobsDetail></JobsDetail>
    <NonExistJobIds></NonExistJobIds>
    </Response>
    The parameters are described as follows:
    Parameter
    Description
    Type
    JobsDetail
    Job details. Same as Response.JobsDetail in CreateMediaJobs.
    Container
    NonExistJobIds
    List of non-existing job IDs queried. If all jobs exist, this parameter is not returned.
    String
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support