ECS / Client / exceptions / ConflictException

ConflictException#

class ECS.Client.exceptions.ConflictException#

The RunTask request could not be processed due to conflicts. The provided clientToken is already in use with a different RunTask request. The resourceIds are the existing task ARNs which are already associated with the clientToken.

To fix this issue:

  • Run RunTask with a unique clientToken.

  • Run RunTask with the clientToken and the original set of parameters

Example

try:
  ...
except client.exceptions.ConflictException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'resourceIds': [
        'string',
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The RunTask request could not be processed due to conflicts. The provided clientToken is already in use with a different RunTask request. The resourceIds are the existing task ARNs which are already associated with the clientToken.

    To fix this issue:

    • Run RunTask with a unique clientToken.

    • Run RunTask with the clientToken and the original set of parameters

    • resourceIds (list) –

      The existing task ARNs which are already associated with the clientToken.

      • (string) –

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.