Skip to content

Commit

Permalink
corrige retry_delay
Browse files Browse the repository at this point in the history
  • Loading branch information
vtr363 committed May 28, 2024
1 parent 8f59b43 commit 60a0843
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pipelines/rj_smtr/veiculo/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import traceback
import zipfile
import io
from datetime import datetime
from datetime import datetime, timedelta
import pandas as pd
import numpy as np
from prefect import task
Expand Down Expand Up @@ -246,7 +246,10 @@ def pre_treatment_sppo_infracao(status: dict, timestamp: datetime):
return {"data": data, "error": error}


@task(max_retries=constants.MAX_RETRIES.value, retry_delay=constants.RETRY_DELAY.value)
@task(
max_retries=constants.MAX_RETRIES.value,
retry_delay=timedelta(seconds=constants.RETRY_DELAY.value),
)
def get_raw_ftp(
ftp_path: str,
filetype: str,
Expand Down

0 comments on commit 60a0843

Please sign in to comment.