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

The logic app run halt and cannot be cancelled. #6341

Open
bwangmgm opened this issue Jan 7, 2025 · 2 comments
Open

The logic app run halt and cannot be cancelled. #6341

bwangmgm opened this issue Jan 7, 2025 · 2 comments
Assignees

Comments

@bwangmgm
Copy link

bwangmgm commented Jan 7, 2025

Describe the Bug with repro steps

It is auto triggered, and happened today

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Screenshots or Videos

No response

Browser

Chrome

Additional context

No response

@ccastrotrejo ccastrotrejo self-assigned this Jan 7, 2025
@ccastrotrejo
Copy link
Contributor

Hi @bwangmgm thanks for raising this issue.

  • Can we get a more detailed description of what is happening?
  • Can we get the workflow json?
  • What happens when you try to cancel it?
  • Does it always stops at the same action? In which is it stopping?
  • Can we get any screenshot or recording when this happens? If not, an HAR file when this happens is also useful, here is a guide on how to collecting-network-logs-in-a-har-file

@bwangmgm
Copy link
Author

bwangmgm commented Jan 8, 2025

the workflow json:

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "triggers": {
            "Recurrence": {
                "type": "Recurrence",
                "recurrence": {
                    "frequency": "Day",
                    "interval": 1,
                    "startTime": "2024-10-12T06:00:00",
                    "timeZone": "Pacific Standard Time"
                }
            }
        },
        "actions": {
            "HTTP": {
                "type": "Http",
                "inputs": {
                    "uri": "https://internalapp.azurewebsites.net/v1/offers",
                    "method": "POST",
                    "headers": {
                        "Content-Type": "application/json"
                    },
                    "body": {
                        "sites": [
                            26
                        ]
                    }
                },
                "runAfter": {}
            },
            "Post_message_in_a_chat_or_channel": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['teams']['connectionId']"
                        }
                    },
                    "method": "post",
                    "body": {
                        "recipient": {
                            "groupId": "74e82bdf-aede-4e96-9333-639f88066660",
                            "channelId": "19:[email protected]"
                        },
                        "messageBody": "<p>job triggered. <br>\nContent: @{body('HTTP')}</p>"
                    },
                    "path": "/beta/teams/conversation/message/poster/Flow bot/location/@{encodeURIComponent('Channel')}"
                },
                "runAfter": {
                    "HTTP": [
                        "Succeeded",
                        "TimedOut",
                        "Skipped",
                        "Failed"
                    ]
                }
            },
            "Send_an_email_(V2)": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['office365']['connectionId']"
                        }
                    },
                    "method": "post",
                    "body": {
                        "To": "[email protected]",
                        "Subject": "Redeem triggerred - production",
                        "Body": "<p>HTTP Status: @{outputs('HTTP')['statusCode']}<br>\nContent:<br>\n@{body('HTTP')}</p>",
                        "Importance": "Normal"
                    },
                    "path": "/v2/Mail"
                },
                "runAfter": {
                    "HTTP": [
                        "Succeeded",
                        "TimedOut",
                        "Skipped",
                        "Failed"
                    ]
                }
            }
        },
        "outputs": {},
        "parameters": {
            "$connections": {
                "type": "Object",
                "defaultValue": {}
            }
        }
    },
    "parameters": {
        "$connections": {
            "value": {
                "teams": {
                    "id": "/subscriptions/[mysubscription]/providers/Microsoft.Web/locations/westus/managedApis/teams",
                    "connectionId": "/subscriptions/[mysubscription]/resourceGroups/[myresourcegroup]/providers/Microsoft.Web/connections/teams",
                    "connectionName": "teams"
                },
                "office365": {
                    "id": "/subscriptions/[mysubscription]/providers/Microsoft.Web/locations/westus/managedApis/office365",
                    "connectionId": "/subscriptions/[mysubscription]/resourceGroups/[myresourcegroup]/providers/Microsoft.Web/connections/office365",
                    "connectionName": "office365"
                }
            }
        }
    }
}

When I tried to cancel it, it says cancelled successfully, but the job still showing as running, even after one day.
It is not stopped at all
Image

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

2 participants