Commit 2e63250d authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use sys.argv[1] for Pipeline initialization

parent 287920fd
Pipeline #11637 passed with stage
...@@ -12,6 +12,7 @@ Modified-History: ...@@ -12,6 +12,7 @@ Modified-History:
2025-12-27, Bo Zhang, rewrite Pipeline class 2025-12-27, Bo Zhang, rewrite Pipeline class
""" """
import sys
import json import json
import subprocess import subprocess
import os import os
...@@ -64,12 +65,12 @@ class Pipeline: ...@@ -64,12 +65,12 @@ class Pipeline:
{'a': 1} {'a': 1}
""" """
def __init__(self, msg: str = "", **env_vars: Any): def __init__(self, **env_vars: Any):
# record start time # record start time
self.t_start = Time.now() self.t_start = Time.now()
# set message # set message
self.msg = msg self.msg = sys.argv[1]
self.msg_dict = self.json2dict(self.msg) self.msg_dict = self.json2dict(self.msg)
# set environment variables # set environment variables
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment