Duplicated subscriptions send for single deployment

We have webhook subscription specified for event categories: Deployment failed, Deployment succeeded and noticed that this subscription is sending 2 events at the same time instead of one.

Also in Task History for deployment I can see that we have 3 items 2 generated by system and 1 by user who actually started the deployment.

Could you please advise why we have multiple event and why there might be 3 items for single deployment in Task History ?

Thanks

Part of the events send at the same time:

Webhook was triggered!
{“Timestamp”:“2018-04-05T19:56:00.0224886+00:00”,“EventType”:“SubscriptionPayload”,“Payload”:{“ServerUri”:null,“ServerAuditUri”:null,“BatchProcessingDate”:“2018-04-05T20:55:50.005546+01:00”,“Subscription”:{“Id”:“Subscriptions-24”,“Name”:“DeploymentsToTeams”,“Type”:0,“IsDisabled”:false,“EventNotificationSubscription”:{“Filter”:{“Users”:[],“Projects”:[],“Environments”:[],“EventGroups”:[],“EventCategories”:

Webhook was triggered!
{“Timestamp”:“2018-04-05T19:56:00.0224886+00:00”,“EventType”:“SubscriptionPayload”,“Payload”:{“ServerUri”:null,“ServerAuditUri”:null,“BatchProcessingDate”:“2018-04-05T20:55:50.005546+01:00”,“Subscription”:{“Id”:“Subscriptions-24”,“Name”:“DeploymentsToTeams”,“Type”:0,“IsDisabled”:false,“EventNotificationSubscription”:{“Filter”:{“Users”:[],“Projects”:[],“Environments”:[],“EventGroups”:[],“EventCategories”:

I also noticed following error in octopus log:

2018-04-08 13:29:44.8157 2884 336 WARN Retrying subscription webhook notification attempt #1 faulted, retrying in 00:00:00.1000000: The task was canceled.

would that indicate that octopus thought it didnt sent first message and then send another ?

Hi,

Thanks for getting in touch.

The task history should show 3 different types of events:
image

The most recent is created when the deployment finishes, the next when the deployment starts, and the last when the deployment is created.

Could you please send the raw task log from the subscription task when you receive two events? (https://octopus.com/docs/support/get-the-raw-output-from-a-task) You can send it to me in a personal message to keep it private.

Cheers,
Shane

Hi Shane,

I think this ticket can be closed was about to send update.

After I increased timeout on subscription to 30 seconds i haven’t got duplicates anymore.

Thanks
Rafal

Great to hear, thanks Rafal.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.