Table of Contents

Class WorkflowOutdatedException

Namespace
Invex.Atom.Workflows
Assembly
Invex.Atom.Workflows.dll

Thrown when workflow files are out of date in headless mode.

public class WorkflowOutdatedException : AtomException
Inheritance
object
Exception
WorkflowOutdatedException

Examples

Typical CI/CD failure scenario and resolution:

// In CI/CD pipeline, the build fails with:
// "One or more workflows are out of date. To regenerate workflows, run the 'Gen' target."

// To fix locally:
// 1. Run: dotnet run --project _atom Gen
// 2. Commit the regenerated workflow files
// 3. Push to repository

Remarks

This exception is thrown when the build is running in headless mode (typically in CI/CD environments) and the workflow files are detected to be out of date. In headless mode, the build does not automatically regenerate workflow files to prevent unexpected changes in automated environments.

Headless mode is typically enabled with the --headless flag and is used in CI/CD pipelines to ensure reproducibility and prevent unintended modifications to workflow files.

To resolve this error, run the Gen target (see Gen) to regenerate the workflow files, then commit the updated files to your repository.

Constructors

WorkflowOutdatedException()

Initializes a new instance of the WorkflowOutdatedException class.

public WorkflowOutdatedException()

WorkflowOutdatedException(string)

Initializes a new instance of the WorkflowOutdatedException class with a specified error message.

public WorkflowOutdatedException(string message)

Parameters

message string

The message that describes the error.

WorkflowOutdatedException(string, Exception)

Initializes a new instance of the WorkflowOutdatedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public WorkflowOutdatedException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

See Also