Skip to content

Commit 1bc46c4

Browse files
committed
Remove webhook
1 parent 12be51e commit 1bc46c4

50 files changed

Lines changed: 8 additions & 1767 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ Serval is designed as a modular monolith with a single deployable unit:
1818
- `Serval.Translation` — translation engine management and pretranslation assembly
1919
- `Serval.WordAlignment` — word alignment engine management
2020
- `Serval.DataFiles` — file and corpus management
21-
- `Serval.Webhooks` — webhook delivery
2221
- `Serval.Shared` — common models, configuration, and services shared across modules
2322
- Engine implementations (also hosted in-process):
24-
- `Serval.Machine.Shared` — NMT, SMT Transfer, and Statistical engine implementations; also runs Hangfire background build jobs and queues ClearML GPU training jobs
23+
- `Serval.Machine.Shared` — NMT, SMT Transfer, and Statistical engine implementations; also runs build jobs and queues ClearML GPU training jobs
2524
- `EchoEngine` — echo engine for testing (translation and word alignment stubs)
26-
- External runtime dependencies: MongoDB (persistence), Hangfire (job scheduling), ClearML (GPU training jobs), S3 (shared file storage for training data and models)
25+
- External runtime dependencies: MongoDB (persistence), ClearML (GPU training jobs), S3 (shared file storage for training data and models)
2726
- SIL.DataAccess
2827
- Abstracts all MongoDB operations
2928
- Enables in-memory database for testing purposes

Serval.sln

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.Shared", "src\Serval
2626
EndProject
2727
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.Translation", "src\Serval\src\Serval.Translation\Serval.Translation.csproj", "{9ADE4727-79F3-4A7E-912A-5DBA7219DC4E}"
2828
EndProject
29-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.Webhooks", "src\Serval\src\Serval.Webhooks\Serval.Webhooks.csproj", "{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}"
30-
EndProject
31-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.Webhooks.Tests", "src\Serval\test\Serval.Webhooks.Tests\Serval.Webhooks.Tests.csproj", "{8FC30758-37FC-4819-805D-8EFF3DEDF05F}"
32-
EndProject
3329
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.Translation.Tests", "src\Serval\test\Serval.Translation.Tests\Serval.Translation.Tests.csproj", "{539598C5-8634-4273-8714-A684622DDCFC}"
3430
EndProject
3531
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serval.DataFiles", "src\Serval\src\Serval.DataFiles\Serval.DataFiles.csproj", "{4375A7BF-E3CE-4785-91E3-2ED6FCEB074F}"
@@ -160,30 +156,6 @@ Global
160156
{9ADE4727-79F3-4A7E-912A-5DBA7219DC4E}.Release|x64.Build.0 = Release|Any CPU
161157
{9ADE4727-79F3-4A7E-912A-5DBA7219DC4E}.Release|x86.ActiveCfg = Release|Any CPU
162158
{9ADE4727-79F3-4A7E-912A-5DBA7219DC4E}.Release|x86.Build.0 = Release|Any CPU
163-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
164-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|Any CPU.Build.0 = Debug|Any CPU
165-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|x64.ActiveCfg = Debug|Any CPU
166-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|x64.Build.0 = Debug|Any CPU
167-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|x86.ActiveCfg = Debug|Any CPU
168-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Debug|x86.Build.0 = Debug|Any CPU
169-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|Any CPU.ActiveCfg = Release|Any CPU
170-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|Any CPU.Build.0 = Release|Any CPU
171-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|x64.ActiveCfg = Release|Any CPU
172-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|x64.Build.0 = Release|Any CPU
173-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|x86.ActiveCfg = Release|Any CPU
174-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F}.Release|x86.Build.0 = Release|Any CPU
175-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
176-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|Any CPU.Build.0 = Debug|Any CPU
177-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|x64.ActiveCfg = Debug|Any CPU
178-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|x64.Build.0 = Debug|Any CPU
179-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|x86.ActiveCfg = Debug|Any CPU
180-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Debug|x86.Build.0 = Debug|Any CPU
181-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|Any CPU.ActiveCfg = Release|Any CPU
182-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|Any CPU.Build.0 = Release|Any CPU
183-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|x64.ActiveCfg = Release|Any CPU
184-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|x64.Build.0 = Release|Any CPU
185-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|x86.ActiveCfg = Release|Any CPU
186-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F}.Release|x86.Build.0 = Release|Any CPU
187159
{539598C5-8634-4273-8714-A684622DDCFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
188160
{539598C5-8634-4273-8714-A684622DDCFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
189161
{539598C5-8634-4273-8714-A684622DDCFC}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -422,8 +394,6 @@ Global
422394
{C5F942A3-8534-43FD-A75C-0160624FD456} = {92805246-5285-4F0A-9BF8-6EE4A027A41B}
423395
{31106018-56D7-4E52-A438-8FD2E12D2D47} = {25CDB05B-4E24-4A6E-933E-1E0BEC97D74D}
424396
{9ADE4727-79F3-4A7E-912A-5DBA7219DC4E} = {25CDB05B-4E24-4A6E-933E-1E0BEC97D74D}
425-
{B3BAEC3C-0E95-422A-A8CF-D91F9874985F} = {25CDB05B-4E24-4A6E-933E-1E0BEC97D74D}
426-
{8FC30758-37FC-4819-805D-8EFF3DEDF05F} = {3E753B99-7C31-42AC-B02E-012B802F58DB}
427397
{539598C5-8634-4273-8714-A684622DDCFC} = {3E753B99-7C31-42AC-B02E-012B802F58DB}
428398
{4375A7BF-E3CE-4785-91E3-2ED6FCEB074F} = {25CDB05B-4E24-4A6E-933E-1E0BEC97D74D}
429399
{0C3DF75B-B022-4EFC-882C-F276F1EC8435} = {3E753B99-7C31-42AC-B02E-012B802F58DB}

deploy/serval/templates/serval-api-deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ spec:
3636
- name: ASPNETCORE_Kestrel__Endpoints__Http2__Protocols
3737
value: Http2
3838
{{- template "secrets.mongodb" . }}
39-
- name: ASPNETCORE_ConnectionStrings__Hangfire
40-
value: $(mongodb_connection)serval_jobs
4139
- name: ASPNETCORE_ConnectionStrings__Mongo
4240
value: $(mongodb_connection)serval
4341
- name: Bugsnag__ReleaseStage

docker-compose.withatlas.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ services:
1414
- ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:80
1515
- ASPNETCORE_Kestrel__Endpoints__Http2__Url=http://*:81
1616
- ASPNETCORE_Kestrel__Endpoints__Http2__Protocols=Http2
17-
- ASPNETCORE_ConnectionStrings__Hangfire=${MONGO_CONNECTION_STRING:?connection string needed}/${MONGO_CONNECTION_PREFIX:?mongo prefix needed}serval_jobs${MONGO_EXTENSIONS}
1817
- ASPNETCORE_ConnectionStrings__Mongo=${MONGO_CONNECTION_STRING}/${MONGO_CONNECTION_PREFIX}serval${MONGO_EXTENSIONS}
1918
- ClearML__ApiServer=https://api.sil.hosted.allegro.ai
2019
- ClearML__Project=docker-compose

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ services:
1313
- ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:80
1414
- ASPNETCORE_Kestrel__Endpoints__Http2__Url=http://*:81
1515
- ASPNETCORE_Kestrel__Endpoints__Http2__Protocols=Http2
16-
- ASPNETCORE_ConnectionStrings__Hangfire=mongodb://mongo:27017/serval_jobs?replicaSet=myRS
1716
- ASPNETCORE_ConnectionStrings__Mongo=mongodb://mongo:27017/serval?replicaSet=myRS
1817
- ClearML__ApiServer=https://api.sil.hosted.allegro.ai
1918
- ClearML__Project=docker-compose

src/Serval/src/Serval.ApiServer/Serval.ApiServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
<ProjectReference Include="..\Serval.DataFiles\Serval.DataFiles.csproj" />
4848
<ProjectReference Include="..\Serval.Translation\Serval.Translation.csproj" />
4949
<ProjectReference Include="..\Serval.WordAlignment\Serval.WordAlignment.csproj" />
50-
<ProjectReference Include="..\Serval.Webhooks\Serval.Webhooks.csproj" />
5150
</ItemGroup>
5251

5352
<Target BeforeTargets="Build" Name="EnforceAppSettingsName">

src/Serval/src/Serval.ApiServer/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public void ConfigureServices(IServiceCollection services)
8080
c.AddTranslation();
8181
c.AddWordAlignment();
8282
c.AddDataFiles();
83-
c.AddWebhooks();
8483
c.AddMachineEngines();
8584
c.AddEchoEngines();
8685
}

src/Serval/src/Serval.ApiServer/appsettings.Development.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"FeatureManagement": {},
33
"ConnectionStrings": {
4-
"Mongo": "mongodb://localhost:27017/serval",
5-
"Hangfire": "mongodb://localhost:27017/serval_jobs"
4+
"Mongo": "mongodb://localhost:27017/serval"
65
},
76
"Logging": {
87
"LogLevel": {

0 commit comments

Comments
 (0)