From f75bdf352bade78c7c827df813103153beaf532c Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Thu, 19 Mar 2015 21:12:40 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a8c8008..2c567d8 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ class TestJob # This is not an Active Job job, but pretty legal Crono job. end ``` +_Please note that crono uses threads, so your code should be thread-safe_ + #### Job Schedule Schedule list is defined in the file `config/cronotab.rb`, that created using `crono:install`. The semantic is pretty straightforward: From d889b9380d54c3ec3516662439d73a0c09103b6b Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Fri, 20 Mar 2015 22:45:18 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c567d8..2d498c7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Crono — Job scheduler for Rails ------------------------ -[![Gem Version](https://badge.fury.io/rb/crono.svg)](http://badge.fury.io/rb/crono) +[![Gem Version](https://badge.fury.io/rb/crono.svg)](http://badge.fury.io/rb/crono)Here's an example of a test job: + + [![Build Status](https://travis-ci.org/plashchynski/crono.svg?branch=master)](https://travis-ci.org/plashchynski/crono) [![Code Climate](https://codeclimate.com/github/plashchynski/crono/badges/gpa.svg)](https://codeclimate.com/github/plashchynski/crono) [![security](https://hakiri.io/github/plashchynski/crono/master.svg)](https://hakiri.io/github/plashchynski/crono/master) @@ -49,7 +51,7 @@ Now you are ready to move forward to create a job and schedule it. Crono can use Active Job jobs from `app/jobs/`. The only requirements is that the `perform` method should take no arguments. -Here's an example of a test job: +Here's an example of a job: ```ruby # app/jobs/test_job.rb