Skip to content

Process returns unexpected results when run from async.parallel #7

@jesseclark

Description

@jesseclark

I am iterating over a set of images and using async.parralel and the hash of image urls in the callback from process contains urls from many different calls to process:

  Schema.process name, path, (err, images)->
    console.log "processPhoto images: ", _.prettyPrint(images)

-> 
2013-11-14T18:03:27.503Z - debug: processPhoto images:  {
  "avatar-icon": "https://s3.amazonaws.com/mw-development/impact-avatar-icon.jpg",
  "avatar-column": "https://s3.amazonaws.com/mw-development/impact-avatar-column.jpg",
  "avatar-card": "https://s3.amazonaws.com/mw-development/team-avatar-card.jpg",
  "large": "https://s3.amazonaws.com/mw-development/city-large.jpg"
}

In this example I would expect the urls to all contain 'impact' and not 'team' or 'city'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions