fix
This commit is contained in:
parent
b6abd05152
commit
cb4aa88dea
@ -233,21 +233,6 @@ handle_info({server_push, PacketId, <<?PUSH_DEPLOY:8, DeployBin/binary>>}, State
|
||||
|
||||
{noreply, State};
|
||||
|
||||
%% 获取task的部署日志
|
||||
handle_info({server_push, PacketId, <<?PUSH_DEPLOY:8, DeployBin/binary>>}, State = #state{transport_pid = TransportPid}) ->
|
||||
#deploy{task_id = TaskId, service_id = ServiceId, tar_url = TarUrl} = message_pb:decode_msg(DeployBin, deploy),
|
||||
|
||||
%% 短暂的等待,efka_inetd收到消息后就立即返回了
|
||||
Reply = case efka_inetd:deploy(TaskId, ServiceId, TarUrl) of
|
||||
ok ->
|
||||
#push_reply{code = 1, message = <<"">>};
|
||||
{error, Reason} when is_binary(Reason) ->
|
||||
#push_reply{code = 0, message = Reason}
|
||||
end,
|
||||
is_pid(TransportPid) andalso efka_transport:push_response(TransportPid, PacketId, message_pb:encode_msg(Reply)),
|
||||
|
||||
{noreply, State};
|
||||
|
||||
%% config.json配置信息
|
||||
handle_info({server_push, PacketId, <<?PUSH_SERVICE_CONFIG:8, ConfigBin/binary>>}, State = #state{transport_pid = TransportPid, inflight = Inflight}) ->
|
||||
#service_config{service_id = ServiceId, config_json = ConfigJson, timeout = Timeout} = message_pb:decode_msg(ConfigBin, service_config),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user