Module Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Return If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareNotEq AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Return If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad
N/A N/A sys N/A os N/A time N/A shutil N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 .. N/A configuration N/A dbutils N/A gitutils N/A background.utils Maintenance N/A N/A N/A background utils BackgroundProcess N/A __init__ N/A N/A self N/A N/A N/A service N/A N/A configuration services MAINTENANCE N/A N/A N/A N/A super Maintenance self __init__ service service N/A N/A hour minute N/A service N/A maintenance_at N/A N/A N/A self register_maintenance hour hour minute minute callback N/A self __maintenance N/A run N/A N/A self N/A N/A N/A N/A N/A dbutils Database db N/A N/A N/A N/A dbutils loadTimezones db N/A N/A N/A N/A super Maintenance self run N/A __maintenance N/A N/A self N/A N/A N/A N/A N/A dbutils Database db N/A N/A cursor N/A N/A db cursor N/A N/A N/A self debug updating timezones N/A N/A N/A dbutils updateTimezones db N/A N/A self terminated N/A N/A N/A N/A N/A configuration base ARCHIVE_REVIEW_BRANCHES N/A N/A repository None N/A N/A N/A cursor execute SELECT branches.repository, branches.id, branches.name
                                    FROM scheduledreviewbrancharchivals
                                    JOIN reviews ON (reviews.id=scheduledreviewbrancharchivals.review)
                                    JOIN branches ON (branches.id=reviews.branch)
                                   WHERE scheduledreviewbrancharchivals.deadline <= NOW()
                                     AND reviews.state IN ('closed', 'dropped')
                                     AND NOT branches.archived
                                ORDER BY branches.repository for_update True N/A N/A repository_id branch_id branch_name cursor N/A N/A N/A N/A repository N/A N/A repository id repository_id N/A N/A repository N/A N/A N/A N/A repository stopBatch N/A repository N/A N/A N/A gitutils Repository fromId db repository_id N/A N/A N/A self info N/A archiving branches in:  N/A repository name N/A N/A N/A self info N/A branch_name N/A branch N/A N/A N/A dbutils Branch fromId db branch_id repository repository N/A N/A N/A N/A N/A branch archive db N/A N/A N/A Exception N/A N/A N/A N/A self exception as_warning True N/A N/A N/A cursor execute DELETE
                                    FROM scheduledreviewbrancharchivals
                                   WHERE deadline <= NOW() N/A N/A N/A db commit N/A N/A N/A cursor execute SELECT name FROM repositories N/A N/A repository_name cursor N/A N/A N/A N/A self debug N/A repository GC: %s repository_name N/A N/A N/A repository N/A N/A N/A gitutils Repository fromName db repository_name N/A N/A N/A repository packKeepaliveRefs N/A N/A N/A repository run gc --prune=1 day --quiet N/A N/A N/A repository stopBatch N/A N/A N/A Exception N/A N/A N/A N/A self exception N/A repository GC failed: %s repository_name N/A N/A self terminated N/A N/A N/A N/A N/A configuration extensions ENABLED N/A N/A now N/A N/A time time N/A max_age N/A N/A N/A 7 24 60 60 N/A base_path N/A N/A N/A os path join N/A N/A configuration paths DATA_DIR temporary EXTENSIONS N/A user_name N/A N/A os listdir base_path N/A N/A user_dir N/A N/A N/A os path join base_path user_name N/A extension_id N/A N/A os listdir user_dir N/A N/A extension_dir N/A N/A N/A os path join user_dir extension_id N/A repository_name N/A N/A os listdir extension_dir N/A N/A repository_dir N/A N/A N/A os path join extension_dir repository_name N/A age N/A now N/A N/A N/A os stat repository_dir st_mtime N/A N/A age max_age N/A N/A N/A N/A self info N/A Removing repository work copy: %s repository_dir N/A N/A N/A shutil rmtree repository_dir N/A N/A start_service N/A N/A N/A N/A N/A maintenance N/A Maintenance N/A N/A N/A maintenance start N/A N/A N/A N/A N/A background utils call maintenance start_service