Skip to content

Commit

Permalink
Merge pull request #403 from creative-commoners/pulls/5.0/cms5-readme
Browse files Browse the repository at this point in the history
DOC Update README.md for CMS 5
  • Loading branch information
sabina-talipova committed Apr 24, 2023
2 parents a303359 + 0d7ab04 commit 8b63dd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ The module comes with

## Installation

```
```sh
composer require symbiote/silverstripe-queuedjobs
```

Now setup a cron job:
## Setup

```
Setup a cron job:

```sh
*/1 * * * * /path/to/silverstripe/vendor/bin/sake dev/tasks/ProcessJobQueueTask
```

Expand All @@ -36,7 +38,6 @@ The following will run the publish job in 1 day's time from now.
```php
use SilverStripe\ORM\FieldType\DBDatetime;
use Symbiote\QueuedJobs\Services\QueuedJobService;

$publish = new PublishItemsJob(21);
QueuedJobService::singleton()
->queueJob($publish, DBDatetime::create()->setValue(DBDatetime::now()->getTimestamp() + 86400)->Rfc2822());
Expand Down

0 comments on commit 8b63dd6

Please sign in to comment.