Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commands

Pavel Studeník edited this page Mar 23, 2017 · 5 revisions

Green Tea commands

Help is possible to show by following command:

python manage.py help <command>

Pick up task

This command picks up asynchronous tasks which were created for Taskomatic in Green Tea. It is needed to have this script in cron or to have own script that call it every some minutes.

python manage.py pickup

Beaker

Schedule

At first you display all schedules.

python manage.py beaker schedule --list

And you can run manually some schedule plan or you can wait for cron.

python manage.py beaker schedule --schedule-label <name_label>

Reschedule

python manage.py beaker reschedule --reschedule-job <job_id>

Cancel

python manage.py beaker cancel --cancel-job <job_id>

Return to Beaker

python manage.py beaker return2beaker --return2beaker-recipe <recipe_id>

Check and download beaker logs

The command download to log files from beaker to local and each log is indexed by elasticsearch. It is important to call if you want to use searching in log files on homepage.

python beaker checklogs

Check beaker

This command checks all running jobs and update information about them from beaker server. Update running jobs from beaker can take some minutes. Recommended value is about 10-20 minutes for period of run.

python manage.py check_beaker

Check tests repository

Command parses git repository with tests and update information from Makefile Beaker test metadata

python manage.py checkrepo

You have to set correct path for models Git in webUI administration /admin/core/git/.

Clone this wiki locally