![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am looking for a way to have a session spawn a background process and release. The user needs to be able to start a job which could conceivably take days (don't ask what the job is, as I have customers reading this froup and I do not want them to realise how messed up their database is). The user's session must, therefore disconnect before the job is completed, and no network connection can be expected to maintain a connexion that long, so the app cannot just spawn another app to run the job. On the OS, it is fairly easy to have one executable start a second that runs in the background and not wait for the second to complete. So, I can have an SPL procedure which makes a system call to the first and more or less achieve my goal. This is our only option in IDS 7, at least as far as I can make out, but system calls are a pain. I would hope a more elegant solution exists through UDR's, but I have not found one. The mi_tab_execute_on_background() call was suggested, but I can get no documentation on this. Does anyone have any advice, information, or suggestions? Sincerely (His and hers), Topher B| Who knows what evil lurks in the hearts of SPL system calls? |
#3
| |||
| |||
|
|
You could always go for an intermediate step. Set a flag in a table, have an OS process (cron scheduled or whatnot) check that table to see if it should spawn the process you really want to run. |
|
-.-- --- ..- / -. . . -.. / - --- / --. . - / .- / .-.. .. ..-. . .-.-.- / ... --- / -.. --- / .. .-.-.- |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
None of this would be necessary if I had not inherited the world's worst database design. |
#6
| |||
| |||
|
|
Oh no, you haven't! |
#7
| |||
| |||
|
|
Obnoxio The Clown <obnoxio (AT) hotmail (DOT) com> challenged Oh no, you haven't! Oh, yes I have, but I cannot describe it or my two customers who read this froup will know what's up. |
)
#8
| |||
| |||
|
|
"Jack Parker" <vze2qjg5 (AT) verizon (DOT) net> dashed out a message saying: You could always go for an intermediate step. Set a flag in a table, have an OS process (cron scheduled or whatnot) check that table to see if it should spawn the process you really want to run. Thanks, Jack, and sorry for the delay responding. For long and tedious reasons, not worth divulging, we are trying to eliminate the use of a daemon or polling process. I was hoping that 9.4 would make it unneccessary. |
![]() |
| Thread Tools | |
| Display Modes | |
| |