Skip to content

Commit

Permalink
[QOLDEV-312] clear job queue after each scenario test
Browse files Browse the repository at this point in the history
- We don't want a lingering job from one test to interfere with the next one
  • Loading branch information
ThrawnCA committed Sep 14, 2023
1 parent aff907e commit e518931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ commands:
usage: Stops CKAN background job worker
cmd: |
ahoy title 'Stopping CKAN background job worker'
ahoy cli "ckan_cli jobs clear; \
ckan_cli jobs clear priority; \
ckan_cli jobs clear bulk;
ahoy cli "ckan_cli jobs clear;
(pgrep 'jobs worker' && pkill -f 'jobs worker') || true"
# Utilities.
Expand Down
1 change: 1 addition & 0 deletions test/features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ def before_scenario(context, scenario):


def after_scenario(context, scenario):
os.system("ckan_cli jobs clear")
benv.after_scenario(context, scenario)

0 comments on commit e518931

Please sign in to comment.