mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
add scheduler script, store rtp view cache in db and schedule generation
This commit is contained in:
parent
59836baf74
commit
1fd989d6c2
6 changed files with 69 additions and 10 deletions
|
@ -90,3 +90,11 @@ def process_expiring_vms_task():
|
|||
expiring_vms.append([name, days])
|
||||
if expiring_vms:
|
||||
send_vm_expire_email('com6056', expiring_vms)
|
||||
|
||||
|
||||
def generate_pool_cache_task():
|
||||
with app.app_context():
|
||||
proxmox = connect_proxmox()
|
||||
db = connect_db()
|
||||
pools = get_vms_for_rtp(proxmox, db)
|
||||
store_pool_cache(db, pools)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue