Skip to content
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

Fix smoke test #1382

Merged
merged 1 commit into from
Dec 7, 2023
Merged
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
8 changes: 7 additions & 1 deletion smoke_tests/tests/test_running_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def test_executor(compute_client, endpoint, tutorial_function_id):
num_tasks = 10
submit_count = 2 # we've had at least one bug that prevented executor re-use

with Executor(endpoint_id=endpoint, client=compute_client) as gce:
# use client on newer versions and funcx_client on older
try:
gce = Executor(endpoint_id=endpoint, client=compute_client)
except TypeError:
gce = Executor(endpoint_id=endpoint, funcx_client=compute_client)

with gce:
khk-globus marked this conversation as resolved.
Show resolved Hide resolved
for _ in range(submit_count):
futures = [
gce.submit_to_registered_function(tutorial_function_id)
Expand Down
Loading