-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove a merge conflict statement that was missed * add celery results backend patch to stop ChordErrors * add MERLIN_RAISE_ERROR return code * add tests to ensure chord error isn't raised * add RAISE_ERROR to docs * update CHANGELOG * fix lint issues * up the sleep time on the chord error test * add new steps to the chord err test spec * add tree statement to the new test for debugging * upping sleep time to see if that fixes github action for python 3.7 * change sleep time for new test based on python version * run fix style * remove specific sleep time for diff python versions
- Loading branch information
Showing
11 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,4 @@ class ReturnCode(IntEnum): | |
DRY_OK = 103 | ||
RETRY = 104 | ||
STOP_WORKERS = 105 | ||
RAISE_ERROR = 106 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SUCCESS_1 | ||
RAISE | ||
SUCCESS_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
description: | ||
name: chord_err | ||
description: test the chord err problem | ||
|
||
env: | ||
variables: | ||
OUTPUT_PATH: ./studies | ||
|
||
global.parameters: | ||
TEST_PARAM: | ||
values: [2, 4] | ||
label: TEST_PARAM.%% | ||
|
||
study: | ||
- name: process_samples | ||
description: Process samples. Purposefully try to trigger the chord err | ||
run: | ||
cmd: | | ||
if [ $(SAMPLE) == "RAISE" ]; | ||
then | ||
exit $(MERLIN_RAISE_ERROR) | ||
else | ||
echo "Success for sample $(SAMPLE)" | ||
fi | ||
- name: samples_and_params | ||
description: step with samples and parameters | ||
run: | ||
cmd: | | ||
echo "sample: $(SAMPLE); param: $(TEST_PARAM)" | ||
if [ -f $(process_samples.workspace)/$(MERLIN_SAMPLE_PATH)/MERLIN_FINISHED ]; | ||
then | ||
echo "MERLIN finished file found at $(process_samples.workspace)/$(MERLIN_SAMPLE_PATH)" | ||
else | ||
echo "MERLIN finished file NOT found at $(process_samples.workspace)/$(MERLIN_SAMPLE_PATH)" | ||
fi | ||
depends: [process_samples_*] | ||
- name: step_3 | ||
description: funnel step | ||
run: | ||
cmd: | | ||
echo "Running step_3" | ||
depends: [samples_and_params_*] | ||
|
||
merlin: | ||
samples: | ||
column_labels: [SAMPLE] | ||
file: $(MERLIN_INFO)/samples.csv | ||
generate: | ||
cmd: cp $(SPECROOT)/../samples_files/samples.csv $(MERLIN_INFO)/samples.csv | ||
resources: | ||
workers: | ||
merlin_test_worker: | ||
args: -l INFO --concurrency 1 --prefetch-multiplier 1 -Ofair | ||
steps: [process_samples, samples_and_params, step_3] |