Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jul 18, 2024
1 parent b6e4fca commit bd252f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dlt/destinations/impl/dummy/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(self, file_name: str, config: DummyClientConfiguration) -> None:

def run(self) -> None:
while True:
time.sleep(0.1)

# simulate generic exception (equals retry)
c_r = random.random()
Expand Down Expand Up @@ -88,6 +87,7 @@ def run(self) -> None:
# this will make the the job go to a failed state
raise DestinationTerminalException("a random fail occured")

time.sleep(0.1)

class DummyFollowupJob(ReferenceFollowupJob):
def __init__(
Expand Down
2 changes: 1 addition & 1 deletion tests/load/test_dummy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test_failing_followup_jobs() -> None:
assert len(started_files) == 2
assert len(dummy_impl.JOBS) == 2
assert len(dummy_impl.RETRIED_JOBS) == 0
len(dummy_impl.CREATED_FOLLOWUP_JOBS) == 0
assert len(dummy_impl.CREATED_FOLLOWUP_JOBS) == 0

# now we can retry the same load, it will restart the two jobs and successfully create the followup jobs
load.initial_client_config.fail_followup_job_creation = False # type: ignore
Expand Down

0 comments on commit bd252f0

Please sign in to comment.