Skip to content

Commit

Permalink
PISTON-1191 Add Queue name and options to tasks_listener (#6701)
Browse files Browse the repository at this point in the history
Co-authored-by: Spencer Hutchinson <spencer@voxter.ca>
  • Loading branch information
bradfordben and Spencer Hutchinson authored Feb 23, 2021
1 parent 1a4a996 commit 7ad4b3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions applications/tasks/src/tasks_listener.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

-record(state, {}).
-type state() :: #state{}.
-define(QUEUE_NAME, <<"tasks_listener">>).
-define(QUEUE_OPTIONS, [{'exclusive', 'false'}]).
-define(CONSUME_OPTIONS, [{'exclusive', 'false'}]).

-define(BINDINGS, [{'self', []}
,{'tasks', []}
Expand Down Expand Up @@ -60,6 +63,9 @@ start_link() ->
gen_listener:start_link(?SERVER
,[{'bindings', ?BINDINGS}
,{'responders', ?RESPONDERS}
,{'queue_name', ?QUEUE_NAME}
,{'queue_options', ?QUEUE_OPTIONS}
,{'consume_options', ?CONSUME_OPTIONS}
]
,[]
).
Expand Down

0 comments on commit 7ad4b3d

Please sign in to comment.