Job Manager¶
Queries execute asynchronously via vim.system, so Neovim never freezes while waiting for BTEQ or TPT. You can continue editing your code while queries run in the background.
Use :TDJ to open the live Job Manager:
:TDJ
- Live status: Displays every job started in the session, marked as
running,done, orfailed. - Timings: Displays elapsed execution time for each query.
- Reference: Keeps a reference to the source query and results.
Controls¶
| Keymap | Action |
|---|---|
<CR> |
Open the selected job's log, output, or export preview |
d / x |
Cancel or remove job from the list |
q |
Close the Job Manager buffer |
Persistent Session Jobs¶
Jobs executing within a persistent session (:TDSession) have special behavior in the Job Manager:
- Session indicator: Identified by an
(S)tag next to the user profile name. - Sequential queue: Because a Teradata session processes one request at a time, commands waiting for their turn appear with a status of
Queued, transitioning toRunningonce the prior query finishes. - Job cancellation:
- Canceling a
Queuedcommand simply removes it from the pending execution queue without affecting the session. - Canceling an actively
Runningcommand interrupts it on Linux and macOS while preserving the session and its volatile tables (on Windows, canceling closes the session).
Full Export Jobs (TPT)¶
Jobs created via full exports (:TDExport or pressing F in a result grid) run through TPT in the background:
- Status: Marked with operation
export. While active, the job showsTPT running. - Row counts: Upon completion, the rows column displays the final exported row count.
- Preview output (
<CR>): Pressing<CR>on a finished export job opens the first rows (export.head_lines) in a read-only preview grid. - Canceling (
x): Pressingxcancels the export process. Whentwbkillandtwbrmcpare installed, the job is cleanly aborted on Teradata, checkpoint files are removed, and the partial CSV is deleted. - Deleting export files (
d): Pressingdon a finished export job deletes the exported.csvfile from disk (with confirmation) while retaining the query in history.