-
Notifications
You must be signed in to change notification settings - Fork 14
Call ecflow_client to set event for post jobs #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call ecflow_client to set event for post jobs #53
Conversation
|
Here is an example of implementing an ecflow API solution # import statements
# ...
import ecflow
# ...
# Release post job to create index files and copy files to COM
if os.getenv("envir") is not None:
client = ecflow.Client(
host=os.getenv("ECF_HOST"),
port=os.getenv("ECF_PORT"),
)
ECF_NAME = os.getenv("ECF_NAME")
client.force_event(f"{ECF_NAME}:release_f${lead:03d}", "set")To the best of my knowledge, this would work if ecflow on WCOSS were built with python 3.12. Thank you, Rahul, for pointing out that the venv and ecflow would use the same python interpreter. |
|
I'm recommending we go live with the version in parallel, which is the subshell implementation @RussellManser-NCO describes in this PR. I understand your concerns, @aerorahul, and ultimately the solution here is to use the python API. We will begin pursuing that, so we can switch out the subshell for consistent python 3.12 ecflow API calls. We should be able to build just the API (not the client or server binaries) and put it inside the venv for aigfs/gefs. |
Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
aerorahul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
thanks for working through the comments, and evaluating alternatives.
This will work for v1, but we should create a NCO bugzilla for a later update.
LinlinCui-NOAA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks.
|
@aerorahul if it's okay with you... I'd like to only use github issues for the AI applications, not NCO bugzilla. It's time for us to start the transition and this app has been leading the way into the future from the start. Can we create / agree on a template to use for ops issues and then we start using that? |
YES! Here is an example from the global-workflow on the template, if you and others are interested. Suggestions welcome! |
|
@StevenEarle-NCO See #57 |
This PR calls
set_event.shto trigger post jobs for aigfs (see NOAA-EMC/aigfs#4). Post jobs in in NOAA-EMC/aigfs#4 create grib2 .idx files and copy fiels to COM. This PR replaces #48.Please note that this solution has already been implemented in para.