Skip to content

QRSH Interactive Session Termination When Pressing Keys During Scheduling (PTY Mode) #73

Description

@eddiewang927

Description

When submitting an interactive job using qrsh, if any key (e.g., Enter) is pressed during the message:


waiting for interactive job to be scheduled ...

the job will terminate immediately after being scheduled and will not enter the interactive session.

The qmaster log reports:


job <JOBID>.1 failed on host <EXEC_HOST> assumedly after job because: job <JOBID>.1 died through signal HUP (1)

If no key is pressed during scheduling, the session works correctly.

Additionally, when using -pty n, the issue does NOT occur. The problem happens only when using -pty y.


Steps to Reproduce

test.sh

#!/bin/bash

for i in {1..100}

do

    echo $i

    sleep 1

done

Run:

qrsh -pty y -now n -verbose -notify -j y -p 0 test.sh

Case A: No key pressed → Works normally


waiting for interactive job to be scheduled ...

Your interactive job 3170180 has been successfully scheduled.

Establishing builtin session ...

1

2

3

...

Case B: Press Enter during scheduling → Session never starts


waiting for interactive job to be scheduled ...

[ENTER]

[ENTER]

[ENTER]

Your interactive job 3170316 has been successfully scheduled.

Establishing builtin session ...

# then exits immediately

qmaster log:


job 3170911.1 died through signal HUP (1)

Case C: Using -pty n → Not affected

qrsh -pty n -now n -verbose -notify -j y -p 0 test.sh

Even if pressing Enter during scheduling, the interactive session starts normally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions