Skip to content

Commit 4cecac0

Browse files
authored
Merge pull request #887 from deepmodeling/zjgemi
Add HTTPOPTemplate
2 parents c930088 + 93370fc commit 4cecac0

File tree

4 files changed

+1152
-6
lines changed

4 files changed

+1152
-6
lines changed

src/dflow/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from .io import (AutonamedDict, IfExpression, InputArtifact, InputParameter,
1313
Inputs, OutputArtifact, OutputParameter, Outputs,
1414
if_expression)
15-
from .op_template import (OPTemplate, PythonScriptOPTemplate, Secret,
16-
ShellOPTemplate)
15+
from .op_template import (HTTPOPTemplate, OPTemplate, PythonScriptOPTemplate,
16+
Secret, ShellOPTemplate)
1717
from .resource import Resource
1818
from .slurm import SlurmJob, SlurmJobTemplate, SlurmRemoteExecutor
1919
from .step import (HookStep, Step, argo_concat, argo_enumerate, argo_len,
@@ -45,7 +45,7 @@
4545
"query_archived_workflows", "ContainerExecutor", "ArgoStep",
4646
"ArgoWorkflow", "argo_enumerate", "path_object_of_artifact",
4747
"CustomArtifact", "gen_code", "jsonpickle", "HTTPArtifact",
48-
"HookStep"]
48+
"HookStep", "HTTPOPTemplate"]
4949

5050

5151
if os.environ.get("DFLOW_LINEAGE"):

src/dflow/client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
from .v1alpha1_parameter import V1alpha1Parameter
55
from .v1alpha1_retry_strategy import V1alpha1RetryStrategy
66
from .v1alpha1_sequence import V1alpha1Sequence
7+
from .v1alpha1_template import V1alpha1Template
78
from .v1alpha1_value_from import V1alpha1ValueFrom
89
from .v1alpha1_workflow_step import V1alpha1WorkflowStep
910

1011
__all__ = ["V1alpha1Artifact", "V1alpha1LifecycleHook", "V1alpha1Parameter",
1112
"V1alpha1RetryStrategy", "V1alpha1Sequence", "V1alpha1ValueFrom",
12-
"V1alpha1WorkflowStep", "V1alpha1DAGTask"]
13+
"V1alpha1WorkflowStep", "V1alpha1DAGTask", "V1alpha1Template"]

0 commit comments

Comments
 (0)