Skip to content

Commit 3b343d3

Browse files
authored
Merge pull request #4 from net0well/fase-4/fila-worker
Fase 4: fila RabbitMQ, worker e agendamento cron (specs 005, 006, WorkerHost)
2 parents be4beb5 + 29d0cfa commit 3b343d3

90 files changed

Lines changed: 8819 additions & 266 deletions

File tree

Some content is hidden

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

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ jobs:
4141
- name: Build
4242
run: dotnet build --no-restore --configuration Release
4343

44-
# The persistence tests start PostgreSQL 16 with Testcontainers (Docker); GitHub's Windows runners
45-
# cannot run Linux containers, so Windows runs the Core tests only.
44+
# weasyprint (CS-2 fixture, html-para-pdf) renders with pango.
45+
- name: Install pango
46+
if: runner.os == 'Linux'
47+
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz0b fonts-dejavu-core
48+
49+
# The persistence, queue and worker tests start PostgreSQL 16, RabbitMQ 3.13 and Mailpit with Testcontainers
50+
# (Docker); GitHub's Windows runners cannot run Linux containers, so Windows runs the Core tests only.
4651
- name: Test
4752
if: runner.os == 'Linux'
4853
run: dotnet test --no-build --configuration Release

‎Directory.Packages.props‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55
<ItemGroup>
6+
<PackageVersion Include="Cronos" Version="0.13.0" />
67
<PackageVersion Include="JsonSchema.Net" Version="9.4.1" />
8+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.13" />
79
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.13" />
810
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.13" />
911
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="10.0.13" />
@@ -13,13 +15,22 @@
1315
<PackageVersion Include="Microsoft.Extensions.Diagnostics" Version="10.0.13" />
1416
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="10.0.13" />
1517
<PackageVersion Include="Microsoft.Extensions.Diagnostics.Testing" Version="10.11.0" />
18+
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.13" />
1619
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.13" />
1720
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.13" />
1821
<PackageVersion Include="Microsoft.Extensions.Options" Version="10.0.13" />
1922
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.11.0" />
2023
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
24+
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.20.1" />
25+
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.20.1" />
26+
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.20.0" />
27+
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.20.0" />
28+
<PackageVersion Include="RabbitMQ.Client" Version="7.2.2" />
29+
<PackageVersion Include="Serilog.AspNetCore" Version="10.0.0" />
30+
<PackageVersion Include="Serilog.Formatting.Compact" Version="3.0.0" />
2131
<PackageVersion Include="Shouldly" Version="4.3.0" />
2232
<PackageVersion Include="Testcontainers.PostgreSql" Version="4.16.0" />
33+
<PackageVersion Include="Testcontainers.RabbitMq" Version="4.16.0" />
2334
<PackageVersion Include="xunit.v3" Version="4.0.2" />
2435
</ItemGroup>
2536
</Project>

‎PythonScriptRunner.slnx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
<Solution>
2+
<Folder Name="/hosts/">
3+
<Project Path="hosts/PythonScriptRunner.ServiceDefaults/PythonScriptRunner.ServiceDefaults.csproj" />
4+
<Project Path="hosts/PythonScriptRunner.WorkerHost/PythonScriptRunner.WorkerHost.csproj" />
5+
</Folder>
26
<Folder Name="/src/">
37
<Project Path="src/PythonScriptRunner.Abstractions/PythonScriptRunner.Abstractions.csproj" />
48
<Project Path="src/PythonScriptRunner.Core/PythonScriptRunner.Core.csproj" />
59
<Project Path="src/PythonScriptRunner.EntityFrameworkCore/PythonScriptRunner.EntityFrameworkCore.csproj" />
10+
<Project Path="src/PythonScriptRunner.RabbitMQ/PythonScriptRunner.RabbitMQ.csproj" />
11+
<Project Path="src/PythonScriptRunner.Worker/PythonScriptRunner.Worker.csproj" />
612
</Folder>
713
<Folder Name="/tests/">
814
<Project Path="tests/PythonScriptRunner.Core.Tests/PythonScriptRunner.Core.Tests.csproj" />
915
<Project Path="tests/PythonScriptRunner.EntityFrameworkCore.Tests/PythonScriptRunner.EntityFrameworkCore.Tests.csproj" />
16+
<Project Path="tests/PythonScriptRunner.RabbitMQ.Tests/PythonScriptRunner.RabbitMQ.Tests.csproj" />
17+
<Project Path="tests/PythonScriptRunner.Worker.Tests/PythonScriptRunner.Worker.Tests.csproj" />
1018
</Folder>
1119
</Solution>

‎README.md‎

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ com contrato de entrada/saída, trilhas (**Pipelines**), execução assíncrona
55
cron e painel Vue opcional.
66

77
> Projeto em desenvolvimento. Esta versão entrega o **Core Runner** (execução síncrona de Stages e de
8-
> trilhas), o SDK Python **`psrunner`** e a **persistência em PostgreSQL** (catálogo versionado e histórico).
8+
> trilhas), o SDK Python **`psrunner`**, a **persistência em PostgreSQL** (catálogo versionado e histórico) e a
9+
> **execução assíncrona** com RabbitMQ, worker e agendamento cron.
910
1011
## Como funciona
1112

@@ -120,21 +121,58 @@ await app.Services.MigratePythonScriptRunnerAsync(); // explícito; ou Generat
120121
um job de manutenção cria partições à frente e remove as antigas. Uma trilha pode encurtar a retenção.
121122
- **Auditoria:** ações humanas (`Actor.User(...)`) ficam em `psr.audit_events`; disparos automáticos ficam na própria execução.
122123

124+
## Fila, worker e agendamento (RabbitMQ)
125+
126+
Com `PythonScriptRunner.RabbitMQ` e `PythonScriptRunner.Worker`, execuções podem ser enfileiradas. Cada passo é uma
127+
mensagem: o worker assume o passo com um *lease*, executa o processo Python e grava o resultado e a mensagem do próximo
128+
passo na mesma transação (outbox no PostgreSQL). Enfileirar funciona mesmo com o broker fora do ar.
129+
130+
```csharp
131+
builder.Services
132+
.AddPythonScriptRunner()
133+
.AddEntityFrameworkCore(o => o.UseNpgsql(builder.Configuration.GetConnectionString("psr")!))
134+
.AddRabbitMq(o => o.ConnectionString = builder.Configuration.GetConnectionString("rabbitmq")) // RabbitMQ 3.13+
135+
.AddWorker(o => o.MaxConcurrency = 8) // só nos processos que executam passos
136+
.AddRunEventHandler<NotificarErp>(s => s.Subscription("erp").On("run.succeeded.calculo-progressao", "run.failed.*"));
137+
builder.Services.AddHealthChecks().AddPythonScriptRunnerChecks(); // banco, broker e uv
138+
139+
// ...
140+
RunHandle run = await queue.EnqueuePipelineAsync("calculo-progressao", new { a1 = 1, razao = 2, n = 4, coeficientes = new[] { 1, 0, 1 } });
141+
```
142+
143+
- **Confiabilidade:** retry automático por Stage com atraso exponencial; worker perdido é detectado pelo *lease* e o
144+
passo é retomado (Stage idempotente ou com retry restante) ou falha com `WorkerLost` para reprocesso manual;
145+
mensagens duplicadas não executam o passo duas vezes.
146+
- **Concorrência:** `MaxConcurrency` por worker e `max_concurrent_runs` por trilha (as demais esperam como `Pending`, em ordem).
147+
- **Cancelamento:** `IRunManager.CancelAsync` encerra a árvore de processos no worker que executa o passo.
148+
- **Agendamento:** `ICatalogAdmin.CreateScheduleAsync` com expressão cron e fuso IANA (padrão `America/Sao_Paulo`);
149+
ocorrências perdidas viram uma execução de recuperação; vários workers nunca disparam a mesma ocorrência.
150+
- **Sistemas externos:** o comando público `StartPipelineRun` (exchange `psr.public`) inicia trilhas e os eventos
151+
`run.*`/`step.*` (exchange `psr.events`) informam o andamento e as saídas. Contratos em `schemas/messages`.
152+
- **Observabilidade:** `ActivitySource` e `Meter` `PythonScriptRunner`; o `traceparent` acompanha a execução até o worker.
153+
154+
O host `hosts/PythonScriptRunner.WorkerHost` é um worker pronto, configurado por variáveis de ambiente
155+
(`ConnectionStrings__psr`, `ConnectionStrings__rabbitmq`, `PythonScriptRunner__Worker__MaxConcurrency`,
156+
`PythonScriptRunner__Secrets__<NOME>`, `PSR_AUTO_MIGRATE=true`), com `/health/live`, `/health/ready`, logs JSON e OTLP.
157+
123158
## Requisitos
124159

125160
- .NET 10 SDK
126161
- [uv](https://docs.astral.sh/uv/) no PATH (cria e cacheia um ambiente Python por conjunto de dependências)
127-
- PostgreSQL 16+ apenas para o pacote de persistência (os testes usam Docker/Testcontainers)
162+
- PostgreSQL 16+ apenas para o pacote de persistência e RabbitMQ 3.13+ para a fila (os testes usam Docker/Testcontainers)
128163

129164
## Estrutura
130165

131166
| Pasta | Conteúdo |
132167
|-------|----------|
133168
| `src/PythonScriptRunner.Abstractions` | contratos públicos (tipos de campo, `StageDefinition`, `RunResult`, `PsrFile`, interfaces) |
134169
| `src/PythonScriptRunner.Core` | catálogos (código e pasta), validação, ambientes uv, executor de processos, runner |
135-
| `src/PythonScriptRunner.EntityFrameworkCore` | PostgreSQL: catálogo versionado, histórico, arquivos, idempotência, outbox, auditoria, retenção |
170+
| `src/PythonScriptRunner.EntityFrameworkCore` | PostgreSQL: catálogo versionado, histórico, arquivos, idempotência, outbox, auditoria, retenção, agendamentos e ciclo das execuções enfileiradas |
171+
| `src/PythonScriptRunner.RabbitMQ` | topologia, relay do outbox, `IRunQueue`, comando público, eventos e assinaturas |
172+
| `src/PythonScriptRunner.Worker` | execução dos passos enfileirados, *lease*, retry, cancelamento, cron |
173+
| `hosts` | `WorkerHost` e `ServiceDefaults` (Serilog, OpenTelemetry, health checks) |
136174
| `python/psrunner` | SDK Python (`@stage`, `Context`, `File`, `StageError`, `psrunner.testing`, CLI) |
137-
| `schemas` | JSON Schemas do `stage.json` e do `*.pipeline.json` |
175+
| `schemas` | JSON Schemas do `stage.json`, do `*.pipeline.json` e das mensagens públicas |
138176
| `tests` | testes .NET (unitários e de integração com Python real) e fixtures de trilha |
139177

140178
## Desenvolvimento
@@ -143,6 +181,8 @@ await app.Services.MigratePythonScriptRunnerAsync(); // explícito; ou Generat
143181
dotnet build
144182
dotnet test --project tests/PythonScriptRunner.Core.Tests
145183
dotnet test --project tests/PythonScriptRunner.EntityFrameworkCore.Tests # precisa de Docker
184+
dotnet test --project tests/PythonScriptRunner.RabbitMQ.Tests # precisa de Docker
185+
dotnet test --project tests/PythonScriptRunner.Worker.Tests # precisa de Docker
146186

147187
cd python/psrunner
148188
uv sync

‎hosts/Directory.Build.props‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project>
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
3+
4+
<PropertyGroup>
5+
<!-- Hosts are deployed as containers, not published as packages. -->
6+
<IsPackable>false</IsPackable>
7+
<!-- Required by IDE0005 (unused usings) during build; host members are not documented. -->
8+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<NoWarn>$(NoWarn);CS1591</NoWarn>
10+
</PropertyGroup>
11+
</Project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<RootNamespace>PythonScriptRunner.ServiceDefaults</RootNamespace>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
9+
</ItemGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
13+
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
14+
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
15+
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" />
16+
<PackageReference Include="Serilog.AspNetCore" />
17+
<PackageReference Include="Serilog.Formatting.Compact" />
18+
</ItemGroup>
19+
20+
</Project>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
using Microsoft.AspNetCore.Builder;
2+
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
3+
using Microsoft.Extensions.DependencyInjection;
4+
using Microsoft.Extensions.Diagnostics.HealthChecks;
5+
using OpenTelemetry;
6+
using OpenTelemetry.Metrics;
7+
using OpenTelemetry.Resources;
8+
using OpenTelemetry.Trace;
9+
using Serilog;
10+
using Serilog.Formatting.Compact;
11+
12+
namespace Microsoft.Extensions.Hosting;
13+
14+
/// <summary>
15+
/// Defaults of the standalone hosts (spec 009; D-54): Serilog writing JSON to the console, OpenTelemetry traces and metrics of
16+
/// the <c>PythonScriptRunner</c> source/meter (exported with OTLP when <c>OTEL_EXPORTER_OTLP_ENDPOINT</c> is set) and the
17+
/// <c>/health/live</c> and <c>/health/ready</c> endpoints.
18+
/// </summary>
19+
public static class ServiceDefaultsExtensions
20+
{
21+
/// <summary>Tag of the checks behind <c>/health/live</c>.</summary>
22+
public const string LiveTag = "live";
23+
24+
/// <summary>Tag of the checks behind <c>/health/ready</c>.</summary>
25+
public const string ReadyTag = "ready";
26+
27+
/// <summary>Adds logging, telemetry and the liveness check.</summary>
28+
/// <param name="builder">Host builder.</param>
29+
/// <param name="serviceName">Service name in logs and telemetry.</param>
30+
public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder, string serviceName)
31+
where TBuilder : IHostApplicationBuilder
32+
{
33+
ArgumentNullException.ThrowIfNull(builder);
34+
builder.Services.AddSerilog((services, logger) => logger
35+
.ReadFrom.Configuration(builder.Configuration)
36+
.Enrich.FromLogContext()
37+
.Enrich.WithProperty("service", serviceName)
38+
.WriteTo.Console(new RenderedCompactJsonFormatter()));
39+
40+
var telemetry = builder.Services.AddOpenTelemetry()
41+
.ConfigureResource(resource => resource.AddService(serviceName))
42+
.WithTracing(tracing => tracing.AddSource("PythonScriptRunner").AddAspNetCoreInstrumentation())
43+
.WithMetrics(metrics => metrics.AddMeter("PythonScriptRunner").AddAspNetCoreInstrumentation().AddRuntimeInstrumentation());
44+
if (!string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]))
45+
{
46+
telemetry.UseOtlpExporter();
47+
}
48+
49+
builder.Services.AddHealthChecks().AddCheck("self", () => HealthCheckResult.Healthy(), [LiveTag]);
50+
return builder;
51+
}
52+
53+
/// <summary>
54+
/// Maps <c>/health/live</c> (the process answers) and <c>/health/ready</c> (checks tagged <see cref="ReadyTag"/>: 200 when
55+
/// healthy or degraded, 503 when unhealthy).
56+
/// </summary>
57+
/// <param name="app">Application.</param>
58+
public static WebApplication MapDefaultEndpoints(this WebApplication app)
59+
{
60+
ArgumentNullException.ThrowIfNull(app);
61+
app.MapHealthChecks("/health/live", new HealthCheckOptions { Predicate = check => check.Tags.Contains(LiveTag) });
62+
app.MapHealthChecks("/health/ready", new HealthCheckOptions { Predicate = check => check.Tags.Contains(ReadyTag) });
63+
return app;
64+
}
65+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Standalone worker of PythonScriptRunner (spec 009): runs queued steps, cron schedules and the maintenance job.
2+
// Configuration comes from environment variables, e.g. ConnectionStrings__psr, ConnectionStrings__rabbitmq,
3+
// PythonScriptRunner__Worker__MaxConcurrency, PythonScriptRunner__Secrets__<NAME> and PSR_AUTO_MIGRATE.
4+
var builder = WebApplication.CreateBuilder(args);
5+
builder.AddServiceDefaults("psr-worker");
6+
7+
var configuration = builder.Configuration;
8+
builder.Services
9+
.AddPythonScriptRunner(o => configuration.GetSection("PythonScriptRunner").Bind(o))
10+
.AddEntityFrameworkCore(o =>
11+
{
12+
configuration.GetSection("PythonScriptRunner:EntityFrameworkCore").Bind(o);
13+
o.UseNpgsql(configuration.GetConnectionString("psr")
14+
?? throw new InvalidOperationException("Set the PostgreSQL connection string ConnectionStrings__psr."));
15+
})
16+
.AddRabbitMq(o =>
17+
{
18+
configuration.GetSection("PythonScriptRunner:RabbitMQ").Bind(o);
19+
o.ConnectionString = configuration.GetConnectionString("rabbitmq")
20+
?? throw new InvalidOperationException("Set the RabbitMQ connection string ConnectionStrings__rabbitmq.");
21+
})
22+
.AddWorker(o => configuration.GetSection("PythonScriptRunner:Worker").Bind(o));
23+
builder.Services.AddHealthChecks().AddPythonScriptRunnerChecks();
24+
25+
var app = builder.Build();
26+
if (configuration.GetValue<bool>("PSR_AUTO_MIGRATE"))
27+
{
28+
// EF Core serializes concurrent migrations with a PostgreSQL advisory lock, so replicas can start together (spec 009, AC-8).
29+
await app.Services.MigratePythonScriptRunnerAsync();
30+
}
31+
32+
app.MapDefaultEndpoints();
33+
await app.RunAsync();
34+
35+
/// <summary>Entry point (public for the integration tests).</summary>
36+
public partial class Program;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<RootNamespace>PythonScriptRunner.WorkerHost</RootNamespace>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<ProjectReference Include="..\..\src\PythonScriptRunner.Worker\PythonScriptRunner.Worker.csproj" />
9+
<ProjectReference Include="..\PythonScriptRunner.ServiceDefaults\PythonScriptRunner.ServiceDefaults.csproj" />
10+
</ItemGroup>
11+
12+
</Project>

‎schemas/messages/run-event.v1.json‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://raw.githubusercontent.com/net0well/PythonScriptRunner/main/schemas/messages/run-event.v1.json",
4+
"title": "PythonScriptRunner run event (psr.run-event.v1)",
5+
"description": "Published on the topic exchange psr.events with the routing key <type>.<pipeline key> or <type>.stage:<stage key> (AMQP type psr.run-event.v1). Fields are only added within v1; consumers must ignore unknown fields.",
6+
"type": "object",
7+
"required": ["eventId", "type", "occurredAt"],
8+
"properties": {
9+
"eventId": { "type": "string", "format": "uuid" },
10+
"type": {
11+
"enum": [
12+
"run.queued", "run.rejected", "run.started", "step.started", "step.succeeded", "step.retry-scheduled", "step.failed",
13+
"run.succeeded", "run.failed", "run.cancelled"
14+
]
15+
},
16+
"occurredAt": { "type": "string", "format": "date-time" },
17+
"runId": {
18+
"description": "Null when a request was rejected before a run existed.",
19+
"type": ["string", "null"],
20+
"format": "uuid"
21+
},
22+
"kind": { "enum": ["Pipeline", "PipelineTest", "Stage", "StageTest", null] },
23+
"pipelineKey": { "type": ["string", "null"] },
24+
"pipelineVersion": { "type": ["integer", "null"] },
25+
"stageKey": { "type": ["string", "null"] },
26+
"stageVersion": { "type": ["integer", "null"] },
27+
"correlationId": { "type": ["string", "null"] },
28+
"trigger": { "enum": ["Library", "Dashboard", "Schedule", "QueueCommand", null] },
29+
"status": { "enum": ["Pending", "Queued", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", null] },
30+
"step": {
31+
"description": "The step of step.* events.",
32+
"type": ["object", "null"],
33+
"required": ["key", "order", "attempt"],
34+
"properties": {
35+
"key": { "type": "string" },
36+
"order": { "type": "integer", "minimum": 1 },
37+
"attempt": { "type": "integer", "minimum": 0 }
38+
}
39+
},
40+
"error": {
41+
"type": ["object", "null"],
42+
"required": ["kind", "message"],
43+
"properties": {
44+
"kind": { "description": "An error kind of the data mapping (e.g. ScriptError) or Rejected.", "type": "string" },
45+
"code": { "type": ["string", "null"] },
46+
"message": { "type": "string" },
47+
"step": { "type": ["string", "null"] },
48+
"reasons": { "description": "Why a request was rejected.", "type": ["array", "null"], "items": { "type": "string" } }
49+
}
50+
},
51+
"outputs": {
52+
"description": "Declared outputs of run.succeeded: values inline; files as {\"$artifact\": {id, name, contentType, size}}. Null above 256 KB.",
53+
"type": ["object", "null"]
54+
},
55+
"outputsTruncated": { "type": "boolean" },
56+
"retryAt": { "type": ["string", "null"], "format": "date-time" },
57+
"triggerDetails": {
58+
"description": "Details of the trigger, e.g. scheduleId, scheduledFor and missedOccurrences of a schedule.",
59+
"type": ["object", "null"]
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)