Skip to content

TACCValidator

TACCValidator

TACCValidator(client)

First provider component: discovery and preflight only, never submission.

The caller owns authentication and selects the Tapis tenant. No tapipy import or DesignSafe endpoint is needed here. Limits come from the selected system, not a hardcoded hardware table. Missing limits are explicitly unverified.

Parameters:

Name Type Description Default
client object

Authenticated Tapis client with system metadata access.

required
Example

With an already authenticated client and an existing workflow:

from femora.jobs.platforms import TACCSettings, TACCValidator
def check_resources(client, workflow):
    validator = TACCValidator(client)
    queues = validator.queues("stampede3")
    settings = TACCSettings("stampede3", "YOUR_QUEUE", "YOUR_PROJECT", 1, 1, 10)
    report = validator.validate(workflow, settings)
    report.raise_for_errors()
    return queues, report

Methods:

Name Description
queues

Read queue bounds from the selected system; performs no remote writes.

validate

Check actual stage capacity and requested resources without submission.

validate_resources

Validate resources without importing/executing a Python bundle.

Methods:

queues

queues(system: str) -> tuple[QueueLimits, ...]

Read queue bounds from the selected system; performs no remote writes.

Parameters:

Name Type Description Default
system str

Tapis execution-system ID.

required

Returns:

Name Type Description
queues tuple[QueueLimits, ...]

Available logical queues and metadata bounds.

validate

validate(workflow: Workflow, settings: TACCSettings) -> ValidationReport

Check actual stage capacity and requested resources without submission.

Parameters:

Name Type Description Default
workflow Workflow

Concrete workflow to inspect.

required
settings TACCSettings

Requested scheduler resources.

required

Returns:

Name Type Description
report ValidationReport

Errors, warnings, and unverified conditions.

validate_resources

validate_resources(settings: TACCSettings) -> ValidationReport

Validate resources without importing/executing a Python bundle.

Parameters:

Name Type Description Default
settings TACCSettings

Requested scheduler resources.

required

Returns:

Name Type Description
report ValidationReport

Findings; workflow capacity remains unverified.