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
we recently ran a workshop, and most attendees ran the code locally. then, we saw an uptick of events in posthog that didn't match the number of attendees: we had about 20 attendees but saw >100 new users on posthog. I suspect this has to do with #15, but I'm unsure.
the workshop covers a few of our projects, but I suspect the problem is with the Running experiments in parallel section, which runs this pipeline.
We need to investigate if this is still an issue and fix it.
Yes, It seems like the problem happens when we use the parallel executor and we check if it's the 1st usage.
defcheck_first_time_usage():
""" The function checks for first time usage if the conf file exists and the uid file doesn't exist. """internal=Internal()
first_time=internal.first_timeinternal.first_time=Falsereturnfirst_time
Since the default values of the Internal config file are these:
classInternal(Config):
""" Internal file to store settings (not intended to be modified by the user) """last_version_check: datetime.datetime=Noneuid: strfirst_time: bool=Truedefuid_default(self):
returnstr(uuid4())
If we use parallel, and each process sees an empty config file, it gets the default values and creates a new user id. Since we're using internal = Internal() a lot of times this happens often.
I tried to reduce the number of times we write to this config file and changed the check_first_time_usage logic to read directly from the configuration file.
I ran the workshop locally and it seems to solve this duplications issue and didn't affect the tests.
This is my user: b76b83ed-8075-4e5b-ad8c-766aa4e773e9 (~186 events)
we recently ran a workshop, and most attendees ran the code locally. then, we saw an uptick of events in posthog that didn't match the number of attendees: we had about 20 attendees but saw >100 new users on posthog. I suspect this has to do with #15, but I'm unsure.
the workshop covers a few of our projects, but I suspect the problem is with the Running experiments in parallel section, which runs this pipeline.
We need to investigate if this is still an issue and fix it.
FYI: @idomic
The text was updated successfully, but these errors were encountered: