Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-admin
Commits
21a68679
Commit
21a68679
authored
Oct 03, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Batch Jobs:
Reactivating batch job debugging
parent
8ca4fab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
7 deletions
+42
-7
batch-job-run.tcl
www/auth/batch-job-run.tcl
+42
-7
No files found.
www/auth/batch-job-run.tcl
View file @
21a68679
...
...
@@ -13,12 +13,6 @@ set page_title "Run batch job"
set
authority_page_url
[
export_vars -base authority
{
{
authority_id
$authority
(
authority_id
)}
}]
set
context
[
list
[
list
"."
"Authentication"
]
[
list
$authority
_page_url
"
$authority
(pretty_name)"
]
$page
_title
]
# Fraber 110913:
# set job_id [auth::authority::batch_sync -authority_id $authority_id
]
# set job_url [export_vars -base batch-job { job_id
}]
set
job_url
""
# --------------------------------------------------------------
# Get the paremeters for the autority
...
...
@@ -55,5 +49,46 @@ foreach element_name [auth::authority::get_sc_impl_columns] {
# Import users
# --------------------------------------------------------------
set
result
[
auth::ldap::batch_import::import_users
[
array
get parameter_values
]
$authority
_id
]
set
job_start_time
[
db_string start_time
"select now() from dual"
]
array
set result_hash
[
auth::ldap::batch_import::import_users -debug_p 1
[
array
get parameter_values
]
$authority
_id
]
set
job_end_time
[
db_string start_time
"select now() from dual"
]
set
result
$result
_hash
(
result
)
set
debug
$result
_hash
(
debug
)
set
job_id
[
db_nextval auth_batch_job_entry_id_seq
]
db_dml insert_batch_results
"
insert into auth_batch_jobs (
job_id,
job_start_time,
job_end_time,
interactive_p,
snapshot_p,
authority_id,
message,
creation_user,
doc_start_time,
doc_end_time,
doc_status,
doc_message,
document
) values (
:job_id,
:job_start_time,
:job_end_time,
't',
NULL,
:authority_id,
NULL, -- message
[
ad_get_user_id
]
,
:job_start_time,
:job_end_time,
:result,
NULL, -- doc_message
:debug
)
"
# Fraber 110913:
# set job_id [auth::authority::batch_sync -authority_id $authority_id
]
set
job_url
[
export_vars -base batch-job
{
job_id
}]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment