Vyral.Execution.Local 0.2.0

dotnet add package Vyral.Execution.Local --version 0.2.0
                    
NuGet\Install-Package Vyral.Execution.Local -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vyral.Execution.Local" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vyral.Execution.Local" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Vyral.Execution.Local" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vyral.Execution.Local --version 0.2.0
                    
#r "nuget: Vyral.Execution.Local, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vyral.Execution.Local@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vyral.Execution.Local&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Vyral.Execution.Local&version=0.2.0
                    
Install as a Cake Tool

Vyral.Execution.Local

Vyral.Execution.Local is the SQLite-backed execution runtime adapter for local development, tests, and local deployments.

Current version label: 0.2.0.

It implements IExecutionRuntimeAdapter using local SQLite state and local artifact files. It is the default adapter for proving plugin behavior before moving to a remote orchestration target.

Local Setup

using Vyral.Execution;
using Vyral.Execution.Local;

IExecutionRuntimeAdapter runtime = new LocalExecutionRuntime(new LocalExecutionRuntimeOptions
{
    DatabasePath = ".vyral/execution-runtime.sqlite",
    MaxActiveRuns = 100,
    MaxRetainedTerminalRuns = 500
});

runtime.RegisterPlugin(new YourPlugin());

For hosted apps, register the same runtime behind the provider-neutral interfaces:

using Vyral.Execution;
using Vyral.Execution.Local;

builder.Services.AddVyralExecutionPlugin<YourPlugin>();
builder.Services.AddVyralLocalExecutionRuntime(new LocalExecutionRuntimeOptions
{
    DatabasePath = ".vyral/execution-runtime.sqlite"
});

// App code can depend on IExecutionRuntime or IExecutionRuntimeAdapter.

The adapter reports its active policy through GetAdapterStatusAsync, including list/history limits, payload/result/artifact bounds, retention scope, resume policy, and concurrency-key behavior.

It also implements IExecutionRuntimeMaintenance:

var maintenance = (IExecutionRuntimeMaintenance)runtime;
var status = await maintenance.GetMaintenanceStatusAsync();
var preview = await maintenance.PruneAsync(new ExecutionMaintenancePruneRequest
{
    DryRun = true,
    RetainTerminalRuns = 100
});

Maintenance status reports local run counts, SQLite row counts, and local artifact directory metrics. Prune requests default to dry-run; set DryRun = false only when intentionally deleting terminal run-owned state beyond the retained terminal count.

Runnable Sample

dotnet run --project samples/Vyral.Execution.LocalSample/Vyral.Execution.LocalSample.csproj -- --once

The sample creates a temporary SQLite database, registers a portable plugin, starts an idempotent run, waits for terminal status, and prints status/history/artifact summaries.

Notes

  • Local SQLite is intended for local-first development and small local deployments.
  • Handler code should still target Vyral.Execution; this adapter is a host/runtime choice.
  • The package-consumer validation script checks the packed local adapter from a temp external app and verifies the current SQLite package graph has no known vulnerabilities from NuGet advisory sources used by dotnet list package --vulnerable.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 113 8/17/2026