Skip to content

Commit

Permalink
Cleanup triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Oct 3, 2024
1 parent 122440b commit 125aaf1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 50 deletions.
File renamed without changes.
34 changes: 1 addition & 33 deletions Modules/CippEntrypoints/CippEntrypoints.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -57,38 +57,6 @@ function Receive-CippHttpTrigger {
}
}

function Receive-CippQueueTrigger {
Param($QueueItem, $TriggerMetadata)

Set-Location (Get-Item $PSScriptRoot).Parent.Parent.FullName
$Start = (Get-Date).ToUniversalTime()
$APIName = $TriggerMetadata.FunctionName
Write-Information "#### Running $APINAME"
Set-Location (Get-Item $PSScriptRoot).Parent.Parent.FullName
$FunctionName = 'Push-{0}' -f $APIName
$QueueTrigger = @{
QueueItem = $QueueItem
TriggerMetadata = $TriggerMetadata
}
try {
& $FunctionName @QueueTrigger
} catch {
$ErrorMsg = $_.Exception.Message
}

$End = (Get-Date).ToUniversalTime()

$Stats = @{
FunctionType = 'Queue'
Entity = $QueueItem
Start = $Start
End = $End
ErrorMsg = $ErrorMsg
}
Write-Information '####### Adding stats'
Write-CippFunctionStats @Stats
}

function Receive-CippOrchestrationTrigger {
param($Context)

Expand Down Expand Up @@ -267,5 +235,5 @@ function Receive-CIPPTimerTrigger {
}
}

Export-ModuleMember -Function @('Receive-CippHttpTrigger', 'Receive-CippQueueTrigger', 'Receive-CippOrchestrationTrigger', 'Receive-CippActivityTrigger', 'Receive-CIPPTimerTrigger')
Export-ModuleMember -Function @('Receive-CippHttpTrigger', 'Receive-CippOrchestrationTrigger', 'Receive-CippActivityTrigger', 'Receive-CIPPTimerTrigger')

17 changes: 0 additions & 17 deletions Z_CIPPQueueTrigger/function.json

This file was deleted.

0 comments on commit 125aaf1

Please sign in to comment.