Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Azure function queue name always set to $return #679

Open
nimish-cd opened this issue Jan 10, 2024 · 1 comment
Open

Python Azure function queue name always set to $return #679

nimish-cd opened this issue Jan 10, 2024 · 1 comment

Comments

@nimish-cd
Copy link

This is a Bug Report

Description

  • What went wrong?

I am creating Azure function with python runtime. Setting output queue binding and name of the queue. Irrespective of whether name is set or not, its always setting binding queue name to $return for first out queue binding.

Function.json:

[
    {
      "type": "queueTrigger",
      "direction": "in",
      "name": "inputQueueName",
      "queueName": "inputQueue",
      "connection": "AzureWebJobsStorage"
    },
    {
      "type": "queue",
      "direction": "out",
      "name": "$return",
      "queueName": "outputQueue",
      "connection": "AzureWebJobsStorage"
    },
    {
      "type": "queue",
      "direction": "out",
      "name": "outputQueueName2",
      "queueName": "outputQueue2",
      "connection": "AzureWebJobsStorage"
    }
  ]
  • What did you expect should have happened?
    As name is provided for queue in event, it should be populated in function.json instead of $return

  • What was the config you used?
    Serverless.yml:

functions:
  queueTrigger:
    handler: handler.main
    runtime: python3.8
    events:
      - queue: inputQueue
        name: inputQueueName
        connection: AzureWebJobsStorage

      - queue: outputQueue
        direction: out
        name: outputQueueName
        connection: AzureWebJobsStorage
  
      - queue: outputQueue2
        direction: out
        name: outputQueueName2
        connection: AzureWebJobsStorage

  • What stack trace or error message from your provider did you see?

Similar or dependent issues:

  • #12345

Additional Data

  • Serverless Framework Version you're using:
    Framework Core: 3.38.0 (local) 3.38.0 (global)
    Plugin: 7.2.0
    SDK: 4.5.1

func -v
4.0.5455

  • Serverless CLI Version you're using:
  • Serverless Azure Plugin Version you're using:
  • Operating System: macOs 14.2.1 (23C71)
  • Stack Trace:
  • Provider Error messages:
@nimish-cd
Copy link
Author

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant