Home
TeamSite
TeamSite, LiveSite and OpenDeploy
locks on generated files
Andy Knipp
OK, so I am not certain if my approach will help.
My DCRs create multiple files, foo.xml -> foo.aspx and foo.ascx all in a shared workarea.
every once in a while one of the files will get locked by someone (say foo.ascx), so if Joe User submit foo.xml, my generate_content step in the WF attempts to add the generated files to the WF, Since I do not check the code (OK, my bad) the WF continues without an important file.
OK, so I certainly can trap that error, log it, callback my WF to the Admin task and then I unlock the file and resume the job. Easy coding.
The WF step runs as iw_user so I am not certain if I can put an unlock CLT in the script and have it work.
My likely approach is to check on failure of addFiles(), try to run the unlock CLT and add again, if that fails head to the Admin task.
Any other approaches I have not thought of ? Should I be running that step as tsadmin ?
Andy
Find more posts tagged with
Comments
There are no comments yet