Commit 393f151 1 parent 7b80aa8 commit 393f151 Copy full SHA for 393f151
File tree 7 files changed +13
-2
lines changed
applications/web-api-migration-job
src/Digdir.Domain.Dialogporten.Infrastructure/Persistence/Migrations
7 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ param containerAppEnvironmentName string
22
22
@secure ()
23
23
param environmentKeyVaultName string
24
24
25
+ @description ('The replica timeout for the job in seconds' )
26
+ param replicaTimeOutInSeconds int
27
+
25
28
var namePrefix = 'dp-be-${environment }'
26
29
var baseImageUrl = 'ghcr.io/altinn/dialogporten-'
27
30
var tags = {
@@ -73,6 +76,7 @@ module migrationJob '../../modules/containerAppJob/main.bicep' = {
73
76
secrets : secrets
74
77
tags : tags
75
78
userAssignedIdentityId : managedIdentity .id
79
+ replicaTimeOutInSeconds : replicaTimeOutInSeconds
76
80
}
77
81
}
78
82
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ using './main.bicep'
3
3
param environment = 'prod'
4
4
param location = 'norwayeast'
5
5
param imageTag = readEnvironmentVariable ('IMAGE_TAG' )
6
+ param replicaTimeOutInSeconds = 36000
6
7
7
8
//secrets
8
9
param containerAppEnvironmentName = readEnvironmentVariable ('AZURE_CONTAINER_APP_ENVIRONMENT_NAME' )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ using './main.bicep'
3
3
param environment = 'staging'
4
4
param location = 'norwayeast'
5
5
param imageTag = readEnvironmentVariable ('IMAGE_TAG' )
6
+ param replicaTimeOutInSeconds = 36000
6
7
7
8
//secrets
8
9
param containerAppEnvironmentName = readEnvironmentVariable ('AZURE_CONTAINER_APP_ENVIRONMENT_NAME' )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ using './main.bicep'
3
3
param environment = 'test'
4
4
param location = 'norwayeast'
5
5
param imageTag = readEnvironmentVariable ('IMAGE_TAG' )
6
+ param replicaTimeOutInSeconds = 36000
6
7
7
8
//secrets
8
9
param containerAppEnvironmentName = readEnvironmentVariable ('AZURE_CONTAINER_APP_ENVIRONMENT_NAME' )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ using './main.bicep'
3
3
param environment = 'yt01'
4
4
param location = 'norwayeast'
5
5
param imageTag = readEnvironmentVariable ('IMAGE_TAG' )
6
+ param replicaTimeOutInSeconds = 36000
6
7
7
8
//secrets
8
9
param containerAppEnvironmentName = readEnvironmentVariable ('AZURE_CONTAINER_APP_ENVIRONMENT_NAME' )
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ param args string = ''
29
29
@minLength (1 )
30
30
param userAssignedIdentityId string
31
31
32
+ @description ('The replica timeout for the job in seconds' )
33
+ param replicaTimeOutInSeconds int
34
+
32
35
var isScheduled = !empty (cronExpression )
33
36
34
37
var scheduledJobProperties = {
@@ -64,7 +67,7 @@ resource job 'Microsoft.App/jobs@2024-03-01' = {
64
67
{
65
68
secrets : secrets
66
69
replicaRetryLimit : 1
67
- replicaTimeout : 120
70
+ replicaTimeout : replicaTimeOutInSeconds
68
71
},
69
72
isScheduled ? scheduledJobProperties : manualJobProperties
70
73
)
Original file line number Diff line number Diff line change 1
- // <auto-generated />
1
+ // <auto-generated />
2
2
using System ;
3
3
using Digdir . Domain . Dialogporten . Infrastructure . Persistence ;
4
4
using Microsoft . EntityFrameworkCore ;
You can’t perform that action at this time.
0 commit comments