Forum OpenACS Q&A: Re: auth::create_user authority_id issue with scheduled proc
Do you know if there is a work around? I must use a sched proc to run this nightly import.
auth::create_userneed a conn in the first place? Quite possibly it doesn't really need one at all, the code is just (incorrectly) structured such that it assumes one. In which case your workaround could be to simply schedule a job outside AOLserver which hits a page to run that
auth::create_userstuff. Then you will be running it in a conn thread and all will be well.
A better solution though, is to figure out what the problem really is.
Note that plenty of other OpenACS users do create users
non-interactively via various methods, and whatever they do apparently
works. So maybe using
auth::create_user isn't really the
right thing at all. Or if it is the right thing, maybe it has a
conn-dependency bug that it shouldn't have.