TACCJob
TACCJob
dataclass
Live Tapis job handle returned by TACCPlatform.submit() or job().
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
Provider job UUID. |
Note
Authentication stays with the platform's in-memory client. Use jobs.connect() instead when you also want cached status updates.
Methods:
| Name | Description |
|---|---|
status |
Fetch normalized and native states from Tapis without updating the local cache. |
details |
Fetch selected scheduler, archive, and execution-directory details. |
cancel |
Request cancellation of this remote job; use status() to confirm completion. |
download |
Stream terminated-job output to a new local ZIP without extracting it. |
cleanup_plan |
Inspect this owner's terminated job and exact supported output folders. |
cleanup |
Delete validated output folders, then hide the job in Tapis. |
Methods:
status
Fetch normalized and native states from Tapis without updating the local cache.
details
Fetch selected scheduler, archive, and execution-directory details.
Returns:
| Name | Type | Description |
|---|---|---|
details |
dict
|
Provider fields; unavailable values may be None. |
cancel
Request cancellation of this remote job; use status() to confirm completion.
download
Stream terminated-job output to a new local ZIP without extracting it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destination
|
Path
|
New local archive filename, not a directory. |
required |
progress
|
Callable | None
|
Callback with phase, byte count, total; total can be None during receiving. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
archive |
Path
|
Saved archive after ZIP-format validation. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Job is active, URL is invalid, or downloaded output is not a ZIP. |
FileExistsError
|
Destination or its .part file already exists. |
Note
A failed transfer can leave a .part file. No extraction, remote deletion, or automatic retry is performed.
cleanup_plan
Inspect this owner's terminated job and exact supported output folders.
Returns:
| Name | Type | Description |
|---|---|---|
plan |
JobCleanupPlan
|
Verified per-job scratch/archive paths; deletes nothing. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Owner, terminal state, UUID, system, or path cannot be verified. |
Note
Scratch cleanup supports Stampede3; archive cleanup supports DesignSafe My Data's recognized per-job layout only.
cleanup
Delete validated output folders, then hide the job in Tapis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expected
|
JobCleanupPlan
|
Previously inspected plan. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
removed |
tuple[str, ...]
|
Remote directories actually deleted. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Safe checks fail or the reviewed plan has changed. |
Warning
Permanently deletes supported remote scratch/archive folders. Download needed files first. Partial deletion is possible if a later API call fails.