Amazon S3 Schedule Task

@anand My app Amazon s3 backup does not backup anymore after bench update. My app just uses scheduler_events in hooks.py any changes in the core in scheduler so that I could change it in my end? Thanks in advance.


scheduler_events = {
    "daily": [
        "s3_backup.task.take_backups_daily"
    ],
    "weekly": [
        "s3_backup.task.take_backups_weekly"
    ],
    "monthly": [
        "s3_backup.task.take_backups_monthly"
    ]
}

Can you check your scheduler log for the exception?

Are other events working like bulk email flush, daily digest etc?

@anand no error in scheduler log. If I execute the command bench --site sample.com execute s3_backup.task.take_backups_daily it backup successfully. How do I check the other events like email flush? I notice also I have not received mail for daily digest.

Make sure your Procfile is setup for RQ i.e. it has something like bench worker in it. If you are using bench start, you should see errors in the output if there are any.

@anand this is my Profile

redis_cache: redis-server config/redis_cache.conf
redis_socketio: redis-server config/redis_socketio.conf
redis_queue: redis-server config/redis_queue.conf
web: bench serve
socketio: /usr/bin/node apps/frappe/socketio.js
workerbeat: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app beat -s scheduler.schedule'
worker: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker -n jobs@%h -Ofair --soft-time-limit 360 --time-limit 390'
longjob_worker: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker -n longjobs@%h -Ofair --soft-time-limit 1500 --time-limit 1530'
async_worker: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker -n async@%h -Ofair --soft-time-limit 1500 --time-limit 1530'
watch: bench watch 

I did not see any bench worker in the code. Do I need to change anything here? Thanks in advance!

If you are developing, you need to change bench-repo branch to develop and run bench update

@anand Thanks my Profile is now updated. I will wait if its doing a backup tomorrow. :slight_smile:

its now working :slight_smile: thanks!

@ccfiel now develop has been merged into master. So it should not matter if you are in develop or master branch.

1 Like

@anand I tried to update my production server but the master still using celery and the UI is the old one. I thought develop is merge to master? Did I miss something? :slight_smile:

@ccfiel only for bench develop==master, but frappe framework and erpnext are still undergoing development in develop branch and master branch is in version 6.

1 Like