에서의 일부를 배포하고 있어요하 App Service
리소스가 포함된 슬롯 2 개(a production
고 staging
슬롯),웹 작업의 발판은 멈추지 않 스왑 후의 슬롯이 있습니다.
기본적으로 내가 내 파이프라인을 다음과 같은 작업
## Start App Service (staging)
- task: AzureAppServiceManage@0
displayName: 'Start Azure App Service: some-app-webjob (staging)'
inputs:
azureSubscription: 'xxx'
Action: 'Start Azure App Service'
WebAppName: 'some-app-webjob'
SpecifySlotOrASE: true
ResourceGroupName: 'some-rg-app-webjob'
Slot: staging
##Start staging continuous webjob
- task: AzureAppServiceManage@0
displayName: 'Start all continuous webjobs: some-app-webjob (staging)'
inputs:
azureSubscription: 'Subscrição do Visual Studio Enterprise(c9f20c2b-15cf-41fb-8122-ddf095c6db02)'
Action: 'Start all continuous webjobs'
WebAppName: 'some-app-webjob'
SpecifySlotOrASE: true
ResourceGroupName: 'some-rg-app-webjob'
Slot: 'staging'
## Swap Slots (staging to production)
- task: AzureAppServiceManage@0
displayName: 'Swap Slots: some-app-webjob'
inputs:
azureSubscription: 'xxx'
WebAppName: 'some-app-webjob'
ResourceGroupName: 'some-rg-app-webjob'
SourceSlot: staging
TargetSlot: production
# Stop WebJobs running Staging
- task: AzureAppServiceManage@0
displayName: 'Stop all continuous webjobs: some-app-webjob (staging)'
inputs:
azureSubscription: 'xxx'
Action: 'Stop all continuous webjobs'
WebAppName: 'some-app-webjob'
SpecifySlotOrASE: true
ResourceGroupName: 'some-rg-app-webjob'
Slot: staging
## Stop App Service (staging)
- task: AzureAppServiceManage@0
displayName: 'Stop Azure App Service: some-app-webjob (staging)'
inputs:
azureSubscription: 'xxx'
Action: 'Stop Azure App Service'
WebAppName: 'some-app-webjob'
SpecifySlotOrASE: true
ResourceGroupName: 'some-rg-app-webjob'
Slot: staging
내가 보기 내의 슬롯을 준비 앱 서비스가 중지되었습니다. 그러나 때때로 workjob 실행 유지하는 동안 그것은 안됩니다. 이후 나는 작업을 해야 하는 모든 지속적인 웹 작업 후에는 교환으로 생산입니다.
에 요약 이 문제가 발생할 수 있습니다:
- 지속적인 웹 작업에서 슬롯 staging 실행
- 지속적인 웹 작업에서 슬롯을 생산 실행
검색 한 후 이 github 스레드 https://github.com/projectkudu/kudu/issues/1886 을 나타내는 웹에서 실행되 scm 사이트에 의해 영향을받지 않는 정지 사이트의 명령입니다. 여전히,나는 작업을 가지는 모든 지속적인 웹.
에 대한 이유가 없이 일어납니까? 우리는 어떻게 이를 방지? 나는 원하지 않는 웹 작업으로 기존의 코드를 실행 한 후 배포할 수 있습니다.
WEBJOBS_STOPPED
훌륭한 솔루션에 적용하는 준비 슬롯이 있습니다. 그것은 정상적으로지 웹 작업는 교환?