Skip to content

Commit a761187

Browse files
authored
Rename DEFAULT_UNIQUE_STATES to UNIQUE_STATES_DEFAULT (#12)
Rename `DEFAULT_UNIQUE_STATES` to `UNIQUE_STATES_DEFAULT` so it matches the suffix convention of all the other default constants.
1 parent 319d2a3 commit a761187

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/riverqueue/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
MAX_ATTEMPTS_DEFAULT = 25
1010
PRIORITY_DEFAULT = 1
1111
QUEUE_DEFAULT = "default"
12-
13-
DEFAULT_UNIQUE_STATES = ["available", "completed", "running", "retryable", "scheduled"]
12+
UNIQUE_STATES_DEFAULT = ["available", "completed", "running", "retryable", "scheduled"]
1413

1514

1615
class Args(Protocol):
@@ -145,8 +144,8 @@ def __check_unique_job(
145144
get_params.state = unique_opts.by_state
146145
lock_str += f"&state={','.join(unique_opts.by_state)}"
147146
else:
148-
get_params.state = DEFAULT_UNIQUE_STATES
149-
lock_str += f"&state={','.join(DEFAULT_UNIQUE_STATES)}"
147+
get_params.state = UNIQUE_STATES_DEFAULT
148+
lock_str += f"&state={','.join(UNIQUE_STATES_DEFAULT)}"
150149

151150
if not any_unique_opts:
152151
return insert_func()

0 commit comments

Comments
 (0)