Logo: Relish

  1. Sign in

Project: Alm

Background workers

  • @javascript
  • @delayed

In order to understand the status of the application
An admin user
Should be able to see the background workers at work

Background
Given
I am logged in as "admin"
And
the source "Citeulike" exists
And
we have 20 queued articles for "Citeulike"
Scenarios
See queued articles
When
I go to the "Sources" admin page
Then
I should see 20 queued articles for "Citeulike"
Working off all articles
Given
"job_batch_size" of source "Citeulike" is 200
And
"workers" of source "Citeulike" is 1
And
jobs are being dispatched
When
I go to the "Sources" admin page
Then
I should see 20 queued articles for "Citeulike"
And
I should see 1 working job for "Citeulike"
And
I should not see pending jobs for "Citeulike"
Working off all articles with not enough workers
Given
"job_batch_size" of source "Citeulike" is 10
And
"workers" of source "Citeulike" is 1
And
we have 1 worker
When
I go to the "Sources" admin page
Then
I should see 20 queued articles for "Citeulike"
And
I should see 1 working job for "Citeulike"
And
I should see 2 pending jobs for "Citeulike"

Last published over 5 years ago by Martin Fenner.