Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant stop "producer" queue #22

Open
NickRI opened this issue Oct 25, 2015 · 0 comments
Open

Cant stop "producer" queue #22

NickRI opened this issue Oct 25, 2015 · 0 comments

Comments

@NickRI
Copy link

NickRI commented Oct 25, 2015

1> jobs:add_queue(p, [{producer, fun() -> io:fwrite("job: ~p~n",[time()]) end}, {standard_rate,1}]).
job: {17,16,46}
job: {17,16,47}
...
jobs:delete_queue(p).
caught Reason = {function_clause,
                    [{jobs_queue,delete,
                         [{queue,p,jobs_queue,
                              {producer,jobs_prod_simple,
                                  {stateless,#Fun<erl_eval.20.90072148>}},
                              undefined,
                              [{rr,{rate,p,1},
                                   {rate,1,1,1.0e3,
                                       [{cpu,10},{memory,10}],
                                       []}}],
                              undefined,undefined,187782816892012,213,0,1.0e3,
                              undefined,#Ref<0.0.0.4414>,0,[],undefined,
                              undefined}],
                         [{file,
                              "/home/nick/castor/_build/default/lib/jobs/src/jobs_queue.erl"},
                          {line,105}]},
                     {jobs_server,i_handle_call,3,
                         [{file,
                              "/home/nick/castor/_build/default/lib/jobs/src/jobs_server.erl"},
                          {line,708}]},
                     {jobs_server,handle_call,3,
                         [{file,
                              "/home/nick/castor/_build/default/lib/jobs/src/jobs_server.erl"},
                          {line,610}]},
                     {gen_server,try_handle_call,4,
                         [{file,"gen_server.erl"},{line,607}]},
                     {gen_server,handle_msg,5,
                         [{file,"gen_server.erl"},{line,639}]},
                     {proc_lib,init_p_do_apply,3,
                         [{file,"proc_lib.erl"},{line,237}]}]}
** exception error: bad argument
     in function  jobs_server:call/3 (/home/nick/castor/_build/default/lib/jobs/src/jobs_server.erl, line 218)

Thats look like jobs_queue can't delete table for p queue because it's not exist.

rebar3, Erlang/OTP 17 [erts-6.4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant