Skip to content

Commit

Permalink
some cleanup in tasks app (2600hz#6195)
Browse files Browse the repository at this point in the history
* rename knm_ tasks module to kt_
* fix include_lib in tasks.hrl
  • Loading branch information
icehess authored and jamesaimonetti committed Dec 12, 2019
1 parent d394499 commit 889c4ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%%%
%%% @end
%%%-----------------------------------------------------------------------------
-module(knm_number_crawler).
-module(kt_number_crawler).
-behaviour(gen_server).

-export([start_link/0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%%%
%%% @end
%%%-----------------------------------------------------------------------------
-module(knm_port_request_crawler).
-module(kt_port_request_crawler).
-behaviour(gen_server).

%% API
Expand Down
2 changes: 1 addition & 1 deletion applications/tasks/src/modules/kt_compactor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
-endif.

-include("tasks.hrl").
-include("src/modules/kt_compactor.hrl").
-include("kt_compactor.hrl").

-define(CATEGORY, "compaction").
-define(ACTIONS, [<<"compact_all">>
Expand Down
2 changes: 0 additions & 2 deletions applications/tasks/src/tasks.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
-include_lib("kazoo_stdlib/include/kz_databases.hrl").
-include_lib("kazoo_tasks/include/tasks.hrl").

-include_lib("task_modules.hrl").

-define(APP, 'tasks').
-define(APP_NAME, <<"tasks">>).
-define(APP_VERSION, <<"4.0.0">> ).
Expand Down
1 change: 1 addition & 0 deletions applications/tasks/src/tasks_bindings.erl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
]).

-include("tasks.hrl").
-include("task_modules.hrl").

-type payload() :: list() | kz_json:object() | kz_term:ne_binary().

Expand Down
4 changes: 2 additions & 2 deletions applications/tasks/src/tasks_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
%% Jobs not generating CSV output
,?WORKER('kz_tasks_trigger')
%% Numbers
,?WORKER('knm_port_request_crawler')
,?WORKER('knm_number_crawler')
,?WORKER('kt_port_request_crawler')
,?WORKER('kt_number_crawler')
%% DB
,?WORKER('kz_account_crawler')
%% Standalone tasks
Expand Down

0 comments on commit 889c4ad

Please sign in to comment.