Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from vdk.internal.core.errors import SkipRemainingStepsException
from vdk.internal.core.errors import UserCodeError
from vdk.internal.core.statestore import CommonStoreKeys
from vdk.internal.core.statestore import ExecutionStateStoreKeys


# TODO make this extensible so new job inputs can be added by plugins
Expand Down Expand Up @@ -182,6 +183,9 @@ def get_execution_properties(self) -> dict:
"pa__job_start_unixtime": str(int(start_time.timestamp())),
"pa__job_start_ts_expr": f"cast ({start_time.timestamp()} as timestamp)",
"pa__op_id": self.__statestore.get(CommonStoreKeys.OP_ID),
"pa__job_version": self.__statestore.get(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you be sure that it is always there?
Is it there even when ppl run a job locally?

ExecutionStateStoreKeys.JOB_GIT_HASH
),
}

def skip_remaining_steps(self) -> None:
Expand Down