Skip to content
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

Decrease file size and project size limits #2152

Merged
merged 8 commits into from
May 10, 2021
4 changes: 2 additions & 2 deletions cli/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ var (
_warningProjectBytes = 1024 * 1024 * 10
_warningFileCount = 1000

_maxFileSizeBytes int64 = 1024 * 1024 * 512
_maxProjectSizeBytes int64 = 1024 * 1024 * 512
_maxFileSizeBytes int64 = 1024 * 1024 * 32 // 32mb
_maxProjectSizeBytes int64 = 1024 * 1024 * 32 // 32mb

_flagDeployEnv string
_flagDeployForce bool
Expand Down
3 changes: 1 addition & 2 deletions docs/workloads/async/handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ and the api configuration file (e.g. `cortex.yaml`) are excluded.

The following files can also be added at the root of the project's directory:

* `.cortexignore` file, which follows the same syntax and behavior as
a [.gitignore file](https://git-scm.com/docs/gitignore).
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore). This may be necessary if you are reaching the size limit for your project directory (32mb).
* `.env` file, which exports environment variables that can be used in the handler. Each line of this file must follow
the `VARIABLE=value` format.

Expand Down
2 changes: 1 addition & 1 deletion docs/workloads/batch/handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai

The following files can also be added at the root of the project's directory:

* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore). This may be necessary if you are reaching the size limit for your project directory (32mb).
* `.env` file, which exports environment variables that can be used in the handler class. Each line of this file must follow the `VARIABLE=value` format.

For example, if your directory looks like this:
Expand Down
2 changes: 1 addition & 1 deletion docs/workloads/realtime/handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai

The following files can also be added at the root of the project's directory:

* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore). This may be necessary if you are reaching the size limit for your project directory (32mb).
* `.env` file, which exports environment variables that can be used in the handler. Each line of this file must follow the `VARIABLE=value` format.

For example, if your directory looks like this:
Expand Down
2 changes: 1 addition & 1 deletion docs/workloads/task/definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai

The following files can also be added at the root of the project's directory:

* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore). This may be necessary if you are reaching the size limit for your project directory (32mb).
* `.env` file, which exports environment variables that can be used in the task. Each line of this file must follow the `VARIABLE=value` format.

For example, if your directory looks like this:
Expand Down