@@ -570,12 +570,16 @@ extract_task_type({TaskType, _}) ->
570570
571571check_retryable (TaskHeader , #{last_retry_interval := LastInterval } = Task , RetryPolicy , Error ) ->
572572 Now = erlang :system_time (second ),
573+ ProcessId = maps :get (process_id , Task ),
573574 Timeout =
574575 case LastInterval =:= 0 of
575576 true -> maps :get (initial_timeout , RetryPolicy );
576577 false -> trunc (LastInterval * maps :get (backoff_coefficient , RetryPolicy ))
577578 end ,
578579 Attempts = maps :get (attempts_count , Task ) + 1 ,
580+ logger :info (" check retryable ~p for error: ~p , last retry interval: ~p sec, attempt: ~p " , [
581+ ProcessId , Error , LastInterval , Attempts
582+ ]),
579583 case is_retryable (Error , TaskHeader , RetryPolicy , Timeout , Attempts ) of
580584 true ->
581585 maps :with (
@@ -601,7 +605,7 @@ check_retryable(TaskHeader, #{last_retry_interval := LastInterval} = Task, Retry
601605 end .
602606
603607% % machinegun legacy
604- - define (WOODY_ERROR (Class ), {exception , _ , {woody_error , Class , _ }}).
608+ - define (WOODY_ERROR (Class ), {exception , _ , {woody_error , { _ , Class , _ } }}).
605609- define (TEST_POLICY (Error , RetryPolicy , Timeout , Attempts ),
606610 (Timeout < maps :get (max_timeout , RetryPolicy , infinity ) andalso
607611 Attempts < maps :get (max_attempts , RetryPolicy , infinity ) andalso
0 commit comments