You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I used the example code, with the sync version.
What I Did
from healthchecks_wrapper import HealthCheck
valid_ping_url = "https://hc-ping.com/5ee5d9a3-eef0-40d5-88ad-7f092f40875b" # Replace with your job url
# Sync jobs
with HealthCheck(valid_ping_url):
# Do your job
print("hi")
I got this error:
test10.py:6: RuntimeWarning: coroutine 'HealthCheck.send_request' was never awaited
with HealthCheck(valid_ping_url):
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
hi
/Users/nick/.pyenv/versions/3.8.13/lib/python3.8/site-packages/healthchecks_wrapper/context_manager.py:36: RuntimeWarning: coroutine 'HealthCheck.send_request' was never awaited
self.send_request(JOB_END_POST_FIX)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
This code works in 0.1.4, though.
The text was updated successfully, but these errors were encountered:
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I used the example code, with the sync version.
What I Did
I got this error:
This code works in 0.1.4, though.
The text was updated successfully, but these errors were encountered: