Skip to content

Commit

Permalink
flow fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinpurtak committed Nov 24, 2023
1 parent cf31f81 commit 16e6cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion viadot/flows/sharepoint_to_adls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from viadot.tasks import AzureDataLakeUpload
from viadot.tasks.sharepoint import SharepointToDF, SharepointListToDF
from prefect.engine.runner import ENDRUN
from prefect.engine.results import LocalResult

logger = logging.get_logger()

Expand Down Expand Up @@ -195,7 +196,7 @@ def __init__(self, message):
self.message = message


@task(slug="check_df")
@task(slug="check_df", result=LocalResult(dir="./results"))
def check_if_df_empty(df):
if len(df.index) == 0:
logger.info("No data in the response. Df empty")
Expand Down

0 comments on commit 16e6cb8

Please sign in to comment.