-
Notifications
You must be signed in to change notification settings - Fork 38
feat: move restartOnError from Actor to Run options #760
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
base: master
Are you sure you want to change the base?
Conversation
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.
So the flag wasnt doing anything before? Technically this is a BC, but if it wasnt working at all, I guess its all right.
Looking at the initial issue, it feels like it was working. Id rather keep it on the old place and mark it as deprecated. We can remove it when we will ship a major bump, together with removing support for older node versions and other things. |
To not break existing API calls, we are going to support |
Not sure what you mean by that. If it's a BC, it should be reflected in a major bump of the library version. Let's just mark it as deprecated, pointing to the correct place where it should be used. |
Sorry for the confusion. What I meant is that leaving the flags at the top level of Actor create and update payload types is ok, as we will still accept the flags there for a while anyway.
|
In that case, we could handle this in the client code, moving the option to the right place if used on the deprecated one. |
Note that this sounds like you are planning to do a BC on the API level, which to me sounds like a bad idea on its own, the API should behave the same, we can't just juggle how the inputs look like. People might be using the API directly, not just via client, and we shouldn't break it just because we realized we did something wrong before. |
We will set up a tracking for whether the top-level The immediate BC is that we will no longer return the We could, however, for at least some time, mirror the |
Done. Top-level |
Core: https://github.com/apify/apify-core/pull/23381
Worker: https://github.com/apify/apify-worker/pull/1515
Shared: apify/apify-shared-js#546
Py Client: apify/apify-client-python#508
Docs: apify/apify-docs#1965