Repository navigation
Open
Description
v1.14.0 was released on 2026-11-25, so the 2.0.0 work can start.
This issue tracks what we remove in 2.0.0. The plan is to remove everything that is deprecated today. Each item says what goes away, where it was deprecated, and what users should use instead.
Checked against master (0fa5992): every DeprecationWarning / FutureWarning, and the deprecation notes in the docs.
To remove in 2.0.0
-
redis_host,redis_portandredis_timeoutofTaskOnKart(deprecated in feat: add the [gokart_lock] config for the lock backend and deprecate TaskOnKart.redis_* #646, from Move redis_host / redis_port / redis_timeout out of TaskOnKart into a dedicated lock config #628;FutureWarning). Useurlandtimeoutof the[gokart_lock]section instead. This also removes the merging logic ingokart/conflict_prevention_lock/lock_config.pyand the "only one ofredis_host/redis_portis set" warning. -
GCSConfig.get_gcs_client()andgoogle-api-python-clientin thegcsextra (deprecated in refactor: move GCS labels to google-cloud-storage and deprecate GCSConfig.get_gcs_client() #637, after refactor: use google-cloud-storage for GCS targets, zip models, exists and timestamps #635;FutureWarningsince feat: say every deprecated API is removed in gokart 2.0.0, and warn with FutureWarning #689). UseGCSConfig.get_storage_client(), which returns agoogle.cloud.storage.Client. -
make_large_data_frame_targetandLargeDataFrameProcessor(Deprecate make_large_data_frame_target / LargeDataFrameProcessor #679; deprecated in feat: deprecate make_large_data_frame_target and LargeDataFrameProcessor #680;FutureWarning). Use a single pickle target,make_target('data.pkl'), instead. Zips written by earlier versions refer toLargeDataFrameProcessor.load, so they will not load after the removal. -
gokart.slack(Slack notification) (deprecated in Deprecate gokart.slack (Slack notification) #550;FutureWarningsince feat: say every deprecated API is removed in gokart 2.0.0, and warn with FutureWarning #689). Use Luigi event handlers (e.g.@luigi.Task.event_handler) to send notifications. Theslack-sdkdependency goes away with it. - The gokart mypy plugin (
gokart.mypy) (deprecated in chore: deprecate gokart mypy plugin #558; stillDeprecationWarning: mypy calls the plugin, so the warning cannot point at the user's code, and aFutureWarningwould break CIs that run mypy with-W error(feat: say every deprecated API is removed in gokart 2.0.0, and warn with FutureWarning #689)). Annotate parameters with the parameter type (foo: luigi.IntParameter = luigi.IntParameter()), which mypy and pyright check without a plugin. -
wrap_run_with_lockingokart/conflict_prevention_lock/task_lock_wrappers.py(deprecated in feat: take the should_lock_run run lock in the gokart worker instead of wrapping Task.run #605;FutureWarningsince feat: say every deprecated API is removed in gokart 2.0.0, and warn with FutureWarning #689). The gokart worker takes the run lock for tasks withshould_lock_run=True; usegokart.build/gokart.run. - NDJSON from
JsonFileProcessor(orient='records')(deprecated in feat: add NdjsonFileProcessor and deprecate JsonFileProcessor(orient='records') #459;FutureWarning). In 2.0.0,orient='records'reads and writes a JSON array. UseNdjsonFileProcessor(or the.ndjsonextension) to keep newline-delimited JSON. -
pandasandpyarrowin the required dependencies (Make pandas an optional dependency (gokart[pandas]) #674, step 2; step 1 is refactor: import gokart without pandas, and add the gokart[pandas] extra #675). Remove them from[project] dependencies, so pandas users needpip install gokart[pandas](already ingokart[all]since refactor: import gokart without pandas, and add the gokart[pandas] extra #675). Without it, the features that need pandas raise anImportErrorwith the install hint. - The dump / load / remove locks of targets: removed (fix!: remove the locks on dump, load and remove of targets #715, closes With a Redis lock, modification_time_check never updates a stale output, so the task re-runs on every build #713), without a deprecation period.
lock_at_dump, thetask_lock_paramsparameter ofmake_target/make_model_target/make_in_memory_target,make_task_lock_paramsandwrap_dump_with_lock/wrap_load_with_lock/wrap_remove_with_lockgo away. Outputs are written atomically; useshould_lock_run=Trueto keep a task from running on several workers at once.
Breaking change candidates for 2.0.0
These are not decided yet. Each needs its own discussion.
- feat: take the run lock by default when redis_host and redis_port are set #617: take the run lock by default when a Redis lock backend is configured. Since
redis_host/redis_portare removed above, this would be abouturlof[gokart_lock]. gokart.make_tree_info/gokart.tree_info(gokart/info.py): kept only for backward compatibility ("moved togokart.tree.task_info.make_task_info_as_tree_str"), but they emit no warning. They would need a deprecation in 1.x first, or a removal noted in the 2.0.0 release notes.- Parallel GCS transfers (feat: upload and download large GCS objects in parallel with transfer_manager #687) on by default, e.g. downloads first, then uploads above a size threshold. feat: upload and download large GCS objects in parallel with transfer_manager #687 adds them as opt-in thresholds in
[GCSConfig]. Turning uploads on by default changes what users get: objects uploaded with an XML API multipart upload have no MD5 hash (only crc32c), the caller needs thestorage.multipartUploads.*permissions, and a killed process can leave an incomplete multipart upload behind, so we would recommend a bucket lifecycle rule that aborts incomplete multipart uploads (AbortIncompleteMultipartUpload). fix!: raise GokartBuildError for MISSING_EXT and NOT_RUN in gokart.build #684:: shipped in 1.14.0 instead, as a breaking change in its release notes. The root-task check in gokart.build: SUCCESS_WITH_RETRY can hide an incomplete root task; check the root task like gokart.run does #690 is a separate follow-up.gokart.buildraisesGokartBuildErrorforMISSING_EXT/NOT_RUN
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat: emit FutureWarning for every deprecation removed in gokart 2.0.0
feat: say every deprecated API is removed in gokart 2.0.0, and warn w…