TACCPlatform
TACCPlatform
TACCPlatform(client, *, app_id, app_version, storage_system, input_directory, archive_directory='${EffectiveUserId}/tapis-jobs-archive/${JobCreateDate}', on_validation=None)
Complete Platform implementation using an existing registered Femora app.
input_directory is storage-root-relative. Each submission gets a UUID child. Supply an authenticated client, or explicitly call login() for an interactive connection. Credentials are never saved. Resources remain in TACCSettings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
object
|
Authenticated Tapis client. |
required |
app_id
|
str
|
Existing registered Femora application ID. |
required |
app_version
|
str
|
Application version. |
required |
storage_system
|
str
|
Input staging storage-system ID. |
required |
input_directory
|
str
|
Staging parent relative to storage-system root. |
required |
archive_directory
|
str
|
Tapis output archive directory template. |
'${EffectiveUserId}/tapis-jobs-archive/${JobCreateDate}'
|
on_validation
|
Callable | None
|
Observer receiving preflight reports. |
None
|
Note
This uses a deployed application; it does not provision a cluster, register an app, install dependencies, or provide OpenSees.
Methods:
| Name | Description |
|---|---|
login |
Prompt privately for a connection; no upload or submission occurs here. |
validate |
Run read-only checks against the actual workflow and resource settings. |
submit |
Validate, upload, and submit a trusted existing workflow bundle. |
job |
Create a live handle for an existing UUID without submitting again. |
list_jobs |
Discover owned Femora jobs, including jobs submitted on other machines. |
tracking_metadata |
Return provider and safe connection metadata for local tracking. |
Methods:
login
classmethod
login(*, app_id, app_version='0.1.0', base_url='https://designsafe.tapis.io', storage_system='designsafe.storage.default', input_directory=None)
Prompt privately for a connection; no upload or submission occurs here.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app_id
|
str
|
Registered application ID, or discovery filter ID. |
required |
app_version
|
str
|
Registered application version. |
'0.1.0'
|
base_url
|
str
|
HTTPS Tapis tenant URL without embedded credentials. |
'https://designsafe.tapis.io'
|
storage_system
|
str
|
Input staging storage system. |
'designsafe.storage.default'
|
input_directory
|
str | None
|
Storage-relative staging directory; defaults to the authenticated user's Femora submissions folder. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
platform |
TACCPlatform
|
Adapter holding an authenticated in-memory client. |
Raises:
| Type | Description |
|---|---|
ValueError
|
URL is invalid or no interactive terminal is available. |
RuntimeError
|
Authentication fails; private error details are omitted. |
Example
Note
Prompts for username/password. Credentials are not stored in bundles or the job registry. For noninteractive use, inject an authenticated client through the constructor instead.
validate
Run read-only checks against the actual workflow and resource settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workflow
|
Workflow
|
Concrete stage/task definitions. |
required |
settings
|
TACCSettings
|
Resource request. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
report |
ValidationReport
|
Errors and explicitly unverified conditions. |
submit
Validate, upload, and submit a trusted existing workflow bundle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bundle
|
Path
|
Local workflow ZIP created by jobs.bundle(). |
required |
settings
|
TACCSettings
|
Logical queue, allocation, node/CPU counts, and minutes. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
job |
TACCJob
|
Remote handle; analysis may still be queued or fail later. |
Raises:
| Type | Description |
|---|---|
SubmissionValidationError
|
Known preflight errors block submission. |
FileExistsError
|
The generated staging directory already exists. |
RemoteSubmissionError
|
Submission outcome is uncertain after staging. |
Warning
Writes remote files and submits real work. Workflow task capacity remains unverified until remote replay constructs the workflow. Prefer jobs.submit() to package source and automatically record the returned job in the local registry.
job
Create a live handle for an existing UUID without submitting again.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
job_id
|
str
|
Provider job UUID. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
job |
TACCJob
|
Handle using this platform's authenticated client. |
list_jobs
Discover owned Femora jobs, including jobs submitted on other machines.
An exact configured app ID supports custom deployments. Standard [owner-]femora-workflow-SYSTEM IDs also recognize older deployments. Job names are deliberately not used as identification.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page_size
|
int
|
Requested page size from 1 to 1000. |
100
|
Yields:
| Name | Type | Description |
|---|---|---|
summary |
JobSummary
|
Safe metadata for jobs owned by the authenticated account. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Requested page size is outside the supported range. |
Note
Contacts Tapis but does not itself update the local registry; use jobs.sync() or jobs.list_jobs(platform=adapter) to cache discoveries.