Skip to content

Job Variable_List dropped if qsub does not submit on first try #413

@brewlius-cesar

Description

@brewlius-cesar

A job's "Variable_List" attribute appears to get dropped if an attempt at job submission does not go through on the first try. This is likely to not be isolated to qsub, but that is the only way I have attempted to demonstrate it.

qsub makes multiple attempts at job submission in cmds/qsub_functions.c main_func(). I tripped upon this particular issue when submitting a job with a dependency that sent back a PBSE_BADDEPEND on first try but then succeeded once alternate_dependency was substituted in.

My amateur digging has led me to src/lib/Libifl/env_attropl_hash.c build_var_list(), where I can see that ATTR_v is deleted from the hash. It's not 100% clear why this is done, other than I noticed that the ATTR_v is sent last in encode_DIS_attropl_hash() and dropping ATTR_v would prevent it from being sent twice. If that is the case a simple if check in enc_DIS_attropl_hash_single() might be better than deleting from the hash table and losing state in between submission attempts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions