Skip to content

Commit b609b93

Browse files
committed
formatted w/black; added note about Windows support to README
1 parent 61fb30e commit b609b93

File tree

8 files changed

+28
-8
lines changed

8 files changed

+28
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ jobs in the "NEW" or "READY" states will be returned.
239239

240240
It may be necessary to supply a DATABASE_PORT environment variable.
241241

242+
## Windows support
243+
244+
Windows is supported on a best-effort basis only, and is not covered by automated or manual testing.
245+
242246
## Code of conduct
243247

244248
For guidelines regarding the code of conduct when contributing to this repository please review [https://www.dabapps.com/open-source/code-of-conduct/](https://www.dabapps.com/open-source/code-of-conduct/)

django_dbq/management/commands/queue_depth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def handle(self, *args, **options):
1616
queue_depths_string = " ".join(
1717
[
1818
"{queue_name}={queue_depth}".format(
19-
queue_name=queue_name, queue_depth=queue_depths.get(queue_name, 0),
19+
queue_name=queue_name,
20+
queue_depth=queue_depths.get(queue_name, 0),
2021
)
2122
for queue_name in queue_names
2223
]

django_dbq/management/commands/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def __init__(self, name, rate_limit_in_seconds):
8484

8585
def init_signals(self):
8686
signal.signal(signal.SIGINT, self.shutdown)
87-
87+
8888
# for Windows, which doesn't support the SIGQUIT signal
8989
if hasattr(signal, "SIGQUIT"):
9090
signal.signal(signal.SIGQUIT, self.shutdown)
91-
91+
9292
signal.signal(signal.SIGTERM, self.shutdown)
9393

9494
def shutdown(self, signum, frame):

django_dbq/migrations/0001_initial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class Migration(migrations.Migration):
4949
models.CharField(db_index=True, max_length=20, default="default"),
5050
),
5151
],
52-
options={"ordering": ["-created"],},
52+
options={
53+
"ordering": ["-created"],
54+
},
5355
),
5456
]

django_dbq/migrations/0002_auto_20151016_1027.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ class Migration(migrations.Migration):
1111
]
1212

1313
operations = [
14-
migrations.AlterModelOptions(name="job", options={"ordering": ["created"]},),
14+
migrations.AlterModelOptions(
15+
name="job",
16+
options={"ordering": ["created"]},
17+
),
1518
]

django_dbq/migrations/0003_auto_20180713_1000.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class Migration(migrations.Migration):
1313

1414
operations = [
1515
migrations.AlterModelOptions(
16-
name="job", options={"ordering": ["-priority", "created"]},
16+
name="job",
17+
options={"ordering": ["-priority", "created"]},
1718
),
1819
migrations.AddField(
1920
model_name="job",

django_dbq/migrations/0004_auto_20210818_0247.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Migration(migrations.Migration):
2727
),
2828
),
2929
migrations.AlterField(
30-
model_name="job", name="workspace", field=models.JSONField(null=True),
30+
model_name="job",
31+
name="workspace",
32+
field=models.JSONField(null=True),
3133
),
3234
]

django_dbq/tests.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ def test_queue_depth_multiple_queues(self):
103103
)
104104

105105
stdout = StringIO()
106-
call_command("queue_depth", queue_name=("default", "testqueue",), stdout=stdout)
106+
call_command(
107+
"queue_depth",
108+
queue_name=(
109+
"default",
110+
"testqueue",
111+
),
112+
stdout=stdout,
113+
)
107114
output = stdout.getvalue()
108115
self.assertEqual(output.strip(), "event=queue_depths default=2 testqueue=2")
109116

0 commit comments

Comments
 (0)