Skip to content

Commit 46112e2

Browse files
committed
rename RunDbtJob to RunDbtCloudJob
1 parent 439e116 commit 46112e2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mara_dbt/commands.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import shlex
3+
from warnings import warn
34

45
from mara_page import _
56
from mara_pipelines.pipelines import Command
@@ -229,7 +230,7 @@ def shell_command(self):
229230
'dbt-cloud')
230231

231232

232-
class RunDbtJob(_DbtCloudCommand):
233+
class RunDbtCloudJob(_DbtCloudCommand):
233234
def __init__(self, job_id: int, cause: str = None, wait: bool = True):
234235

235236
"""
@@ -250,3 +251,10 @@ def shell_command(self):
250251
+ f' job run --job-id {self.job_id}'
251252
+ (f' --cause {shlex.quote(self.cause)}' if self.cause else '')
252253
+ (' --wait' if self.wait else ''))
254+
255+
256+
# deprecated. TBD: Remove in 1.0.0
257+
class RunDbtJob(RunDbtCloudJob):
258+
def __init_subclass__(cls) -> None:
259+
warn("Class RunDbtJob has been renamed to RunDbtCloudJob", DeprecationWarning, stacklevel=2)
260+
return super().__init_subclass__()

0 commit comments

Comments
 (0)