-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
502 Bad Gateway error tied to param visibility #2507
Comments
@Gr1f0n6x If this is related to #2278, could you advise? |
@rayrrr hm, it's strange =\ Probably, i missed something |
@Gr1f0n6x can't provide our company code, sorry, but it looks as though it'll happen with any Task run against a scheduler. I can tell you we are using a central scheduler, and we are able to run 2.7.6 without issue, but anything later than that results in the bug occurring. |
@rayrrr ok, then just one question: do you save tasks state anywhere after you disable luigi's central scheduler in pickled file? Probably, it's the source of this problem as old tasks which were saved before update has no this attribute, but after update scheduler try to get it |
Yes, as i thought. The problem was in saving old versioned tasks.
|
@Gr1f0n6x we do save state in a pickle file as per the built-in The bug has something to do with https://github.com/spotify/luigi/blob/master/luigi/scheduler.py#L825 which is a conditional statement dealing with an attribute called
so if you want to check for the existence of an attribute on a class instance:
Might it be better to use |
@rayrrr yes, exactly. I tried to replace this line |
@rayrrr i've created PR. |
We use Luigi as an unpinned requirement that rebuilds whenever we deploy, in a cloud-hosted environment.
We deployed some changes today that did not involve our Python code; after this deploy, our service went offline with 502 Bad Gateway responses from the scheduler.
Our team dug in and found the following error:
It looks like the Scheduler class needs to be updated to work with the latest changes to how the Task class handles param visibility included in release 2.7.7.
The text was updated successfully, but these errors were encountered: