File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11import json
22import shlex
3+ from warnings import warn
34
45from mara_page import _
56from 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__ ()
You can’t perform that action at this time.
0 commit comments