Any tip on how we could work around this and get the desired result?
Marco
On Nov 30, 2012, at 8:22 PM, Moe Jette wrote:
>
> Right now there is only a number returned. It's either "error_code"
> in struct resource_allocation_response_msg (see slurm.h file) for a
> warning or the return code itself for a fatal error (see the
> slurm_errno.h and src/common/slurm_errno.c for the messages printed,
> for example:
> { ESLURM_ACCOUNTING_POLICY,
> "Job violates accounting/QOS policy (job submit limit, user's "
> "size and/or time limits)"},
>
> It would be simple to add more error codes, a bit harder to modify the
> RPCs to return an arbitrary string.
>
>
> Quoting Marco Passerini <[email protected]>:
>
>>
>> Hi,
>>
>> I'm trying to implement a quota handling system in Slurm:
>> - when the soft limit is passed, a warning is printed to the console of
>> the user
>> - when the hard limit is passed, a warning is printed to his console and
>> the job submission fails
>>
>> We tried with slurm prologs and job_submit.lua, but had no success in
>> printing to the shell.
>> What's the best way to print custom text to the user console upon job
>> submission?
>>
>>
>> Marco
>>
>