Skip to content

Task factory "task per file" fails with source "containerUrl" #122

@tojozefi

Description

@tojozefi

Using task factory "task per file" with source defined as container URL fails with error:
AttributeError: 'SplitResult' object has no attribute 'pathname'

Here is extract from the job template:
{
(...)
"parameters":{
(...)
"inputContainerUrl":{
"type":"string",
"defaultValue":"https://tojobatch.blob.core.windows.net/fgrp-sequencer-input?st=2020-04-29T20%3A20%3A06Z&se=2020-05-30T20%3A20%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
(...)
"job":{
(...)
"taskFactory":{
"type":"taskPerFile",
"source":{
"containerUrl": "[parameters('inputContainerUrl')]"
},
(...)

The same template works ok when using source with "fileGroup" parameter.

Software level:
$ az --version
azure-cli 2.4.0 *
command-modules-nspkg 2.0.3
core 2.4.0 *
nspkg 3.0.4
telemetry 1.0.4
Extensions:
image-copy-extension 0.0.9
azure-batch-cli-extensions 5.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions