Task handling for YTP
by yhteentoimivuuspalvelut

ckanext-ytp-tasks

Schduled task handling for CKAN and YTP tasks. Intented to be used with CKAN celery.

Requires Celery on CKAN.

Installation

Installed as CKAN extension: ytp_tasks

See how to install CKAN extensions.

Configuration

Copy ytp_celery.py.j2 to /etc/ckan/default/ytp_celery.py and rename variables.

Execution

sudo -u $CELERY_USER /usr/lib/ckan/default/bin/celery beat –config=ytp_celery –workdir=/etc/ckan/default/ –pidfile=/tmp/celerybeat_pid –schedule=/tmp/celerybeat_schedule

Commands

Execute commands via paster: /usr/lib/ckan/default/bin/paster –plugin=ckanext-ytp-tasks -c /etc/ckan/default/$CONFIG_FILE \[arguments...\]

::

ytp-task-add - add task to scheduling

::

ytp-tasks-initialize-database - initialize scheduling database

::

ytp-task-execute-all - execute (queue) all tasks now

Recent Activity