It is not currently possible to access the cron ID when the request is being submitted. It would be fairly simple for us to add this, so go ahead and open a feature request. We could add a "cronID" Python variable (and an equivalent "eventManagerID" variable for the EventManager service, which has the same issue), and then you could reference the variable in the PYTHONMACHINE, PYTHONSERVICE, and/or PYTHONREQUEST options when registering with the Cron service, and then pass the cronID to the request you are executing. Then you would have access to the cronID in the executing request, and it could disable the cronID.
Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: Matt <mattmora...@gmail.com> To: staf-users@lists.sourceforge.net Date: 10/15/2010 04:07 AM Subject: [staf-users] Getting the ID of a cron job Hi all, Anyone know of the best way to get the ID of the current running cron job? I've got a test that is started via the STAF cron service and would like to disable it on error. I can do this at the moment with a stafcmd but I have hard coded the cron ID. Thanks, Matt ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users