Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2872

Implement a URL callback triggered after task import is finished

    XMLWordPrintable

Details

    • High
    • For all API users: The task import can now call an URL after finishing a task import and hanging imports are cancelled after (configurable) 48h.
    • Hide
      Now a URL can be configured (runtimeOptions.import.callbackUrl) to be called after a task was imported.
      The URL is called via POST and receives the task object as JSON. So systems creating tasks via API are getting now immediate answer if the task is imported. The status of the task (error on error, or open on success) contains info about the import success. If the task import is running longer as 48 hours, the task is set to error and the callback is called too.
      Show
      Now a URL can be configured (runtimeOptions.import.callbackUrl) to be called after a task was imported. The URL is called via POST and receives the task object as JSON. So systems creating tasks via API are getting now immediate answer if the task is imported. The status of the task (error on error, or open on success) contains info about the import success. If the task import is running longer as 48 hours, the task is set to error and the callback is called too.

    Description

      problem

      API users may need an active callback to receive if a task is finally imported or not, so that no long polling must be implemented.

      solution

      Introduce two new configurations:

      1. the callback URL, default empty, so nothing is triggered (runtimeOptions.import.callbackUrl)
      2. the import timeout, default 48 hours, after that time a task with status import is set to error and the callback is called (runtimeOptions.import.timeout)

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: