[slurm-users] strigger being called but program not executing (take 2)

Jared Baker jbaker at ucar.edu
Tue Jan 18 17:14:45 UTC 2022


I suppose after looking at your other post (w/ images) you had tried
quoting elements. I'd be suspicious about using IO redirection here within
Slurm. I imagine there is no guarantee that Slurm triggers invokes a shell
either and perhaps just does an exec. I'd wrap it up in a shell script
file, make it executable, and try from there too and just use a single
argument to program to test.

jared

On Tue, Jan 18, 2022 at 9:34 AM Jared Baker <jbaker at ucar.edu> wrote:

> I would suspect it's your invocation of strigger regarding your shell;
> Don't really think it's a Slurm issue. I'd probably do something like
> follows, but not tested.
>
> `strigger --set --jobid=523 --fini --program="/bin/echo 'job complete' >>
> /tmp/trigger.txt"`
>
> jared
>
> On Tue, Jan 18, 2022 at 8:48 AM John Yost <hokiegeek2 at gmail.com> wrote:
>
>> whoops, I guess images are not supported, sorry about that!
>>
>> Here's what i am seeing:
>>
>> $ sbatch simple.slurm
>> Submitted batch job 523
>> $ strigger --set --jobid=523 --fini --program=/bin/echo "job complete" >>
>> /tmp/trigger.txt
>> $ strigger --get --jobid=523
>> TRIG_ID RES_TYPE   RES_ID TYPE                                OFFSET USER
>>     FLAGS PROGRAM
>>       2 job           523 fini                                     0
>> slurm          /bin/echo
>> $
>>
>> slurmctld log:
>>
>> [2022-01-18T15:19:59.171] _job_complete: JobId=523 done
>> [2022-01-18T15:20:19.328] trigger uid=1338 type=job:fini exit=1:0
>>
>> Although the trigger is fired, the trigger.txt file is never written, so
>> it seems to be there is a problem executing the program I've defined, but I
>> don't see any errors in slurmctld.log. Any ideas?
>>
>> Thanks
>>
>> --John
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20220118/238a6772/attachment.htm>


More information about the slurm-users mailing list