I opened Feature #3095056 "Add ability to get the registration ID for current cron job" (see http://sourceforge.net/tracker/?func=detail&aid=3095056&group_id=33142&atid=407384 for more information) to provide this capability. I implemented this feature and it will be in the next release of the Cron service and the EventManager service.
-------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 ----- Forwarded by Sharon Lucas/Austin/IBM on 10/26/2010 04:14 PM ----- From: David Bender/Austin/i...@ibmus To: Matt <mattmora...@gmail.com> Cc: staf-users@lists.sourceforge.net Date: 10/15/2010 08:45 AM Subject: Re: [staf-users] Getting the ID of a cron job 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 (Embedded image moved to file: pic27809.gif)Inactive hide details for Matt ---10/15/2010 04:07:35 AM---Hi all, Anyone know of the best way to get the ID of the current runMatt ---10/15/2010 04:07:35 AM---Hi all, Anyone know of the best way to get the ID of the current running cron (Embedded image moved (Embedded image moved to file: pic32582.gif) to file: pic10215.gif) Matt <mattmora...@gmail.com> From: (Embedded image moved (Embedded image moved to file: pic01074.gif) to file: pic22442.gif) staf-users@lists.sourceforge.net To: (Embedded image moved (Embedded image moved to file: pic02011.gif) to file: pic32018.gif) 10/15/2010 04:07 AM Date: (Embedded image moved (Embedded image moved to file: pic13121.gif) to file: pic01232.gif) [staf-users] Getting the ID of a cron job Subject: 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 ------------------------------------------------------------------------------ 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
<<attachment: pic27809.gif>>
<<attachment: pic10215.gif>>
<<attachment: pic32582.gif>>
<<attachment: pic22442.gif>>
<<attachment: pic01074.gif>>
<<attachment: pic32018.gif>>
<<attachment: pic02011.gif>>
<<attachment: pic01232.gif>>
<<attachment: pic13121.gif>>
------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users