Re: Scheduled command fails with "session is closed" after client session closed.

2022-05-17 Thread Paul Spencer
JB, In my example the command is generating a report using command line parameters. I can see use cases where schedule command perform other repetitive tasks requiring parameter input. That said, this may be an edge case with many workarounds or better implementations. I will be using is a

Re: Scheduled command fails with "session is closed" after client session closed.

2022-05-17 Thread Jean-Baptiste Onofré
Hi Paul, if your command uses some session resources (like stream), it's normal as the session is closed when you quit the shell. For mail reporting, it's better to create a service that you trigger with a command (one shot) or with the scheduled (trigger/cron). Regards JB On Mon, May 16, 2022

Scheduled command fails with "session is closed" after client session closed.

2022-05-16 Thread Paul Spencer
Karaf 4.3.6 I have scheduled a command to run on a cron schedule, but the command fails with "java.lang.IllegalStateException: session is closed" after I exit the Karaf client session. The command will only run in the client session scheduling the command. Since command execution can be