Trying to use tasks to load ratedecks

42 views
Skip to first unread message

fred

unread,
Jun 27, 2017, 10:49:50 AM6/27/17
to 2600hz-users
I am using Kazoo v4.1.

I am trying to load ratedecks using this procedure and seeing multiple problems.

Using the same example at the above link, I can load the task with "pending" status.  When I run the task it says executing and then the task status is set to "failed".  However, the rates are added to ratedeck document.  The rates are given ID XX-1, and XX-1415 which I am assuming is correct.

When I try delete those rates using old API way or tasks way it indicates success but the rates are not remove from the ratedeck document. 

Anything I do in tasks results in tasks document "pvt_status": "failure".  So tasks does not seem to be working properly as far as I can tell.

Also, FYI anyone trying to use tasks.  You have to first start kapps "task" and also crossbar module "cb_tasks" both of which are not enabled by default.

 



Marcin Muzylo

unread,
Jun 28, 2017, 10:45:01 AM6/28/17
to 2600hz-users
i have same issue with task under kazoo 4.1 - described here : https://groups.google.com/forum/#!topic/2600hz-dev/K9AefthDuBU

fred

unread,
Jun 28, 2017, 11:00:53 AM6/28/17
to 2600hz-users
This is the error I am seeing.  This task appears to complete but the task is marked as failed after.  Running delete task does not work for ratedecks.  All tasks I run are always marked as failed regardless of whether the task appears to do what it's supposed to or not.

17:40:31.175 [info] |0000000000|kz_tasks_scheduler:490 (<0.4441.1>) about to start task 3e50202144290391427d4ac1cc71b4: rates import
17:40:31.175 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_numbers:help/3
17:40:31.175 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_resource_selectors:help/3
17:40:31.175 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_services:help/3
17:40:31.246 [info] |3e50202144290391427d4ac1cc71b4|kt_rates:148 (<0.12999.5>) import is allowed, continuing
 17:40:31.246 [error] |3e50202144290391427d4ac1cc71b4|kz_task_worker:209 (<0.12999.5>) []
17:40:31.749 [error] |3e50202144290391427d4ac1cc71b4|kz_task_worker:209 (<0.12999.5>) []
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:108 (<0.12999.5>) stacktrace:
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:122 (<0.12999.5>) st: lists:zip at 386
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:123 (<0.12999.5>) args: []
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:123 (<0.12999.5>) args: [undefined]
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: lists:zip/2 at (386)
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: lists:zip/2 at (386)
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: kz_csv:take_mapped_row/2 at (130)
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: kz_tasks_scheduler:strip_columns/4 at (191)
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: kz_tasks_scheduler:maybe_strip_columns/2 at (186)
17:40:32.518 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: kz_tasks_scheduler:try_maybe_strip_columns/2 at (168)
17:40:32.519 [error] |3e50202144290391427d4ac1cc71b4|kz_util:120 (<0.12999.5>) st: kz_tasks_scheduler:worker_finished/5 at (161)
17:40:32.519 [warning] |3e50202144290391427d4ac1cc71b4|kz_tasks_scheduler:171 (<0.12999.5>) stripping empty columns failed: error:function_clause
17:40:49.875 [info] |knm_port_request_crawler|knm_port_request_crawler:164 (<0.13050.5>) port_request crawler completed a full crawl

And after trying to delete ratedeck with tasks.

14:50:25.306 [info] |0000000000|kz_tasks_scheduler:490 (<0.4441.1>) about to start task 97b3c7e066cfaa6d58ff90fc5b1ff0: rates delete
14:50:25.307 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_numbers:help/3
14:50:25.307 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_resource_selectors:help/3
14:50:25.307 [error] |0000000000|kazoo_bindings:720 (<0.4441.1>) unable to find function clause for kt_services:help/3
14:50:25.447 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_task_worker:209 (<0.6699.10>) []
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:108 (<0.6699.10>) stacktrace:
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:122 (<0.6699.10>) st: lists:zip at 386
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:123 (<0.6699.10>) args: []
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:123 (<0.6699.10>) args: [undefined]
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: lists:zip/2 at (386)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: lists:zip/2 at (386)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: kz_csv:take_mapped_row/2 at (130)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: kz_tasks_scheduler:strip_columns/4 at (191)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: kz_tasks_scheduler:maybe_strip_columns/2 at (186)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: kz_tasks_scheduler:try_maybe_strip_columns/2 at (168)
14:50:26.275 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_util:120 (<0.6699.10>) st: kz_tasks_scheduler:worker_finished/5 at (161)
14:50:26.275 [warning] |97b3c7e066cfaa6d58ff90fc5b1ff0|kz_tasks_scheduler:171 (<0.6699.10>) stripping empty columns failed: error:function_clause
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:722 (<0.6699.10>) unable to find function clause for lists:all(#Fun<kt_rates.22.30572416>, {[{<<"prefix">>,<<"1">>},{<<"pvt_type">>,<<"rate">>},{<<"_id">>,<<"XX-1">>}]}) in lists.erl:1211
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:728 (<0.6699.10>) as part of kt_rates:cleanup/2
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {lists,any,2,[{file,"lists.erl"},{line,1224}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {kt_rates,maybe_delete_rate,2,[{file,"src/modules/kt_rates.erl"},{line,361}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {lists,filtermap,2,[{file,"lists.erl"},{line,1316}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {kt_rates,delete_rates,3,[{file,"src/modules/kt_rates.erl"},{line,321}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {kt_rates,cleanup,2,[{file,"src/modules/kt_rates.erl"},{line,236}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {kazoo_bindings,apply_map_responder,2,[{file,"src/kazoo_bindings.erl"},{line,836}]}
14:50:26.897 [error] |97b3c7e066cfaa6d58ff90fc5b1ff0|kazoo_bindings:729 (<0.6699.10>) st: {kazoo_bindings,'-map_responders/3-lc$^0/1-0-',3,[{file,"src/kazoo_bindings.erl"},{line,817}]} 
Reply all
Reply to author
Forward
0 new messages