DeadlineCloud / Client / create_queue

create_queue#

DeadlineCloud.Client.create_queue(**kwargs)#

Creates a queue to coordinate the order in which jobs run on a farm. A queue can also specify where to pull resources and indicate where to output completed jobs.

See also: AWS API Documentation

Request Syntax

response = client.create_queue(
    allowedStorageProfileIds=[
        'string',
    ],
    clientToken='string',
    defaultBudgetAction='NONE'|'STOP_SCHEDULING_AND_COMPLETE_TASKS'|'STOP_SCHEDULING_AND_CANCEL_TASKS',
    description='string',
    displayName='string',
    farmId='string',
    jobAttachmentSettings={
        'rootPrefix': 'string',
        's3BucketName': 'string'
    },
    jobRunAsUser={
        'posix': {
            'group': 'string',
            'user': 'string'
        },
        'runAs': 'QUEUE_CONFIGURED_USER'|'WORKER_AGENT_USER',
        'windows': {
            'passwordArn': 'string',
            'user': 'string'
        }
    },
    requiredFileSystemLocationNames=[
        'string',
    ],
    roleArn='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • allowedStorageProfileIds (list) –

    The storage profile IDs to include in the queue.

    • (string) –

  • clientToken (string) –

    The unique token which the server uses to recognize retries of the same request.

    This field is autopopulated if not provided.

  • defaultBudgetAction (string) – The default action to take on a queue if a budget isn’t configured.

  • description (string) – The description of the queue.

  • displayName (string) –

    [REQUIRED]

    The display name of the queue.

  • farmId (string) –

    [REQUIRED]

    The farm ID of the farm to connect to the queue.

  • jobAttachmentSettings (dict) –

    The job attachment settings for the queue. These are the Amazon S3 bucket name and the Amazon S3 prefix.

    • rootPrefix (string) – [REQUIRED]

      The root prefix.

    • s3BucketName (string) – [REQUIRED]

      The Amazon S3 bucket name.

  • jobRunAsUser (dict) –

    The jobs in the queue run as the specified POSIX user.

    • posix (dict) –

      The user and group that the jobs in the queue run as.

      • group (string) – [REQUIRED]

        The name of the POSIX user’s group.

      • user (string) – [REQUIRED]

        The name of the POSIX user.

    • runAs (string) – [REQUIRED]

      Specifies whether the job should run using the queue’s system user or if the job should run using the worker agent system user.

    • windows (dict) –

      Identifies a Microsoft Windows user.

      • passwordArn (string) – [REQUIRED]

        The password ARN for the Windows user.

      • user (string) – [REQUIRED]

        The user.

  • requiredFileSystemLocationNames (list) –

    The file system location name to include in the queue.

    • (string) –

  • roleArn (string) – The IAM role ARN that workers will use while running jobs for this queue.

  • tags (dict) –

    Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'queueId': 'string'
}

Response Structure

  • (dict) –

    • queueId (string) –

      The queue ID.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException

  • DeadlineCloud.Client.exceptions.ServiceQuotaExceededException