-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2024-12-20_python3.10_infrastructure'
- Loading branch information
Showing
65 changed files
with
937 additions
and
391 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ~~LongRunning:Queue->Huey:Technology~~ | ||
huey_consumer.py portality.tasks.consumer_events_queue.events_queue >> ~/huey_events_queue.log 2>&1 |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ~~LongRunning:Queue->Huey:Technology~~ | ||
huey_consumer.py portality.tasks.consumer_scheduled_long_queue.scheduled_long_queue >> ~/huey_scheduled_long_queue.log 2>&1 |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ~~LongRunning:Queue->Huey:Technology~~ | ||
huey_consumer.py portality.tasks.consumer_scheduled_short_queue.scheduled_short_queue >> ~/huey_scheduled_short_queue.log 2>&1 |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,9 @@ | ||
[program:huey-events] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_events_queue.events_queue | ||
environment= DOAJENV=production | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
9 changes: 9 additions & 0 deletions
9
deploy/supervisor/production-background/huey-scheduled-long.conf
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,9 @@ | ||
[program:huey-scheduled-long] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_scheduled_long_queue.scheduled_long_queue | ||
environment= DOAJENV=production | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
9 changes: 9 additions & 0 deletions
9
deploy/supervisor/production-background/huey-scheduled-short.conf
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,9 @@ | ||
[program:huey-scheduled-short] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_scheduled_short_queue.scheduled_short_queue | ||
environment= DOAJENV=production | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
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,9 @@ | ||
[program:huey-events] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_events_queue.events_queue | ||
environment= DOAJENV=test | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
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,9 @@ | ||
[program:huey-scheduled-long] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_scheduled_long_queue.scheduled_long_queue | ||
environment= DOAJENV=test | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
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,9 @@ | ||
[program:huey-scheduled-short] | ||
command=/home/cloo/doaj/venv/bin/python /home/cloo/doaj/venv/bin/huey_consumer.py -v portality.tasks.consumer_scheduled_short_queue.scheduled_short_queue | ||
environment= DOAJENV=test | ||
user=cloo | ||
directory=/home/cloo/doaj | ||
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log | ||
stderr_logfile=/var/log/supervisor/%(program_name)s-error.log | ||
autostart=true | ||
autorestart=true |
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
36 changes: 36 additions & 0 deletions
36
doajtest/matrices/background_task_status/background_task_status.matrix.csv
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,36 @@ | ||
test_id,in_queue,oldest_queued,error_count,error_age,lrs_success_or_error,queued,errors,lrs | ||
1,0,young,0,out_of_period,complete,stable,stable,stable | ||
2,0,young,0,out_of_period,error,stable,stable,unstable | ||
3,0,young,0,out_of_period,empty,stable,stable,unstable | ||
4,0,young,1,in_period,complete,stable,unstable,stable | ||
5,0,young,1,in_period,error,stable,unstable,unstable | ||
6,0,young,1,out_of_period,complete,stable,stable,stable | ||
7,0,young,1,out_of_period,error,stable,stable,unstable | ||
8,1,old,0,out_of_period,complete,unstable,stable,stable | ||
9,1,old,0,out_of_period,error,unstable,stable,unstable | ||
10,1,old,0,out_of_period,empty,unstable,stable,unstable | ||
11,1,old,1,in_period,complete,unstable,unstable,stable | ||
12,1,old,1,in_period,error,unstable,unstable,unstable | ||
13,1,old,1,out_of_period,complete,unstable,stable,stable | ||
14,1,old,1,out_of_period,error,unstable,stable,unstable | ||
15,1,young,0,out_of_period,complete,stable,stable,stable | ||
16,1,young,0,out_of_period,error,stable,stable,unstable | ||
17,1,young,0,out_of_period,empty,stable,stable,unstable | ||
18,1,young,1,in_period,complete,stable,unstable,stable | ||
19,1,young,1,in_period,error,stable,unstable,unstable | ||
20,1,young,1,out_of_period,complete,stable,stable,stable | ||
21,1,young,1,out_of_period,error,stable,stable,unstable | ||
22,2,old,0,out_of_period,complete,unstable,stable,stable | ||
23,2,old,0,out_of_period,error,unstable,stable,unstable | ||
24,2,old,0,out_of_period,empty,unstable,stable,unstable | ||
25,2,old,1,in_period,complete,unstable,unstable,stable | ||
26,2,old,1,in_period,error,unstable,unstable,unstable | ||
27,2,old,1,out_of_period,complete,unstable,stable,stable | ||
28,2,old,1,out_of_period,error,unstable,stable,unstable | ||
29,2,young,0,out_of_period,complete,unstable,stable,stable | ||
30,2,young,0,out_of_period,error,unstable,stable,unstable | ||
31,2,young,0,out_of_period,empty,unstable,stable,unstable | ||
32,2,young,1,in_period,complete,unstable,unstable,stable | ||
33,2,young,1,in_period,error,unstable,unstable,unstable | ||
34,2,young,1,out_of_period,complete,unstable,stable,stable | ||
35,2,young,1,out_of_period,error,unstable,stable,unstable |
17 changes: 17 additions & 0 deletions
17
doajtest/matrices/background_task_status/background_task_status.settings.csv
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,17 @@ | ||
field,test_id,in_queue,oldest_queued,error_count,error_age,lrs_success_or_error,queued,errors,lrs | ||
type,index,generated,generated,generated,generated,generated,conditional,conditional,conditional | ||
default,,,,,,,stable,stable,stable | ||
,,,,,,,,, | ||
values,,0,old,0,in_period,complete,stable,stable,stable | ||
values,,1,young,1,out_of_period,error,unstable,unstable,unstable | ||
values,,2,,,,empty,,, | ||
,,,,,,,,, | ||
constraint in_queue,,0,young,,,,,, | ||
constraint error_count,,,,0,out_of_period,,,, | ||
constraint error_count,,,,1,,!empty,,, | ||
,,,,,,,,, | ||
conditional queued,,2,,,,,unstable,, | ||
conditional queued,,,old,,,,unstable,, | ||
conditional errors,,,,1,in_period,,,unstable, | ||
conditional lrs,,,,,,error,,,unstable | ||
conditional lrs,,,,,,empty,,,unstable |
150 changes: 150 additions & 0 deletions
150
doajtest/matrices/background_task_status/background_task_status.settings.json
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,150 @@ | ||
{ | ||
"parameters": [ | ||
{ | ||
"name": "test_id", | ||
"type": "index" | ||
}, | ||
{ | ||
"name": "in_queue", | ||
"type": "generated", | ||
"values": { | ||
"0": { | ||
"constraints": { | ||
"oldest_queued": { | ||
"or": [ | ||
"young" | ||
] | ||
} | ||
} | ||
}, | ||
"1": {}, | ||
"2": {} | ||
} | ||
}, | ||
{ | ||
"name": "oldest_queued", | ||
"type": "generated", | ||
"values": { | ||
"old": {}, | ||
"young": {} | ||
} | ||
}, | ||
{ | ||
"name": "error_count", | ||
"type": "generated", | ||
"values": { | ||
"0": { | ||
"constraints": { | ||
"error_age": { | ||
"or": [ | ||
"out_of_period" | ||
] | ||
} | ||
} | ||
}, | ||
"1": { | ||
"constraints": { | ||
"lrs_success_or_error": { | ||
"nor": [ | ||
"empty" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "error_age", | ||
"type": "generated", | ||
"values": { | ||
"in_period": {}, | ||
"out_of_period": {} | ||
} | ||
}, | ||
{ | ||
"name": "lrs_success_or_error", | ||
"type": "generated", | ||
"values": { | ||
"complete": {}, | ||
"error": {}, | ||
"empty": {} | ||
} | ||
}, | ||
{ | ||
"name": "queued", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"in_queue": { | ||
"or": [ | ||
"2" | ||
] | ||
} | ||
}, | ||
{ | ||
"oldest_queued": { | ||
"or": [ | ||
"old" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "errors", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"error_count": { | ||
"or": [ | ||
"1" | ||
] | ||
}, | ||
"error_age": { | ||
"or": [ | ||
"in_period" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "lrs", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"lrs_success_or_error": { | ||
"or": [ | ||
"error" | ||
] | ||
} | ||
}, | ||
{ | ||
"lrs_success_or_error": { | ||
"or": [ | ||
"empty" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.