Skip to content

Commit fdda239

Browse files
authored
Decrease file size and project size limits (#2152)
1 parent fb73a2b commit fdda239

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

cli/cmd/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ var (
4444
_warningProjectBytes = 1024 * 1024 * 10
4545
_warningFileCount = 1000
4646

47-
_maxFileSizeBytes int64 = 1024 * 1024 * 512
48-
_maxProjectSizeBytes int64 = 1024 * 1024 * 512
47+
_maxFileSizeBytes int64 = 1024 * 1024 * 32 // 32mb
48+
_maxProjectSizeBytes int64 = 1024 * 1024 * 32 // 32mb
4949

5050
_flagDeployEnv string
5151
_flagDeployForce bool

docs/workloads/async/handler.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ and the api configuration file (e.g. `cortex.yaml`) are excluded.
1212

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

15-
* `.cortexignore` file, which follows the same syntax and behavior as
16-
a [.gitignore file](https://git-scm.com/docs/gitignore).
15+
* `.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).
1716
* `.env` file, which exports environment variables that can be used in the handler. Each line of this file must follow
1817
the `VARIABLE=value` format.
1918

docs/workloads/batch/handler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai
1010

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

13-
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
13+
* `.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).
1414
* `.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.
1515

1616
For example, if your directory looks like this:

docs/workloads/realtime/handler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai
1212

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

15-
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
15+
* `.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).
1616
* `.env` file, which exports environment variables that can be used in the handler. Each line of this file must follow the `VARIABLE=value` format.
1717

1818
For example, if your directory looks like this:

docs/workloads/task/definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Cortex makes all files in the project directory (i.e. the directory which contai
66

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

9-
* `.cortexignore` file, which follows the same syntax and behavior as a [.gitignore file](https://git-scm.com/docs/gitignore).
9+
* `.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).
1010
* `.env` file, which exports environment variables that can be used in the task. Each line of this file must follow the `VARIABLE=value` format.
1111

1212
For example, if your directory looks like this:

0 commit comments

Comments
 (0)