Skip to content

Commit c9ea709

Browse files
authored
Merge pull request #1265 from JosepSampe/lithops-dev
[Standalone] Do not stop the VM immediately after a job in the Consume mode
2 parents eef5ec6 + b6f87a9 commit c9ea709

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
- [Stats] Added new CPU, Memory and Network statistics in the function results
88
- [IBM VPC] Added a new parameter to enable/disable resource existence check in the platform
99

10-
1110
### Changed
1211
- [Config] Renamed 'customized_runtime' to 'runtime_include_function'
13-
- [IBM VPC] Increase the total number of available IPs in the private network
12+
- [IBM VPC] Increased the total number of available IPs in the private network
13+
- [Standalone] Do not stop the VM immediately after a job in the Cosume mode
1414

1515
### Fixed
1616
- [Standalone] Fixed issue that appears when the invocation payload is too big
1717
- [Invoker] Fixed "runtime_include_function" function/modules path
18+
- [AWS EC2] Reset the public IP address of the master VM on stop
1819

1920

2021
## [v3.1.1]

lithops/standalone/backends/aws_ec2/aws_ec2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,7 @@ def dismantle(self, include_master=True):
918918
ex.map(lambda worker: worker.stop(), self.workers)
919919
self.workers = []
920920

921-
if include_master or self.mode == StandaloneMode.CONSUME.value:
922-
# in consume mode master VM is a worker
921+
if include_master:
923922
self.master.stop()
924923

925924
def get_instance(self, name, **kwargs):

lithops/standalone/backends/azure_vms/azure_vms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ def dismantle(self, include_master=True):
591591
ex.map(lambda worker: worker.stop(), self.workers)
592592
self.workers = []
593593

594-
if include_master or self.mode == StandaloneMode.CONSUME.value:
595-
# in consume mode master VM is a worker
594+
if include_master:
596595
self.master.stop()
597596

598597
def get_instance(self, name, **kwargs):

lithops/standalone/backends/ibm_vpc/ibm_vpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,7 @@ def dismantle(self, include_master=True):
811811
ex.map(lambda worker: worker.stop(), self.workers)
812812
self.workers = []
813813

814-
if include_master or self.mode == StandaloneMode.CONSUME.value:
815-
# in consume mode master VM is a worker
814+
if include_master:
816815
self.master.stop()
817816

818817
def get_instance(self, name, **kwargs):

0 commit comments

Comments
 (0)