Skip to content

Commit

Permalink
Merge pull request #1265 from JosepSampe/lithops-dev
Browse files Browse the repository at this point in the history
[Standalone] Do not stop the VM immediately after a job in the Consume mode
  • Loading branch information
JosepSampe authored Feb 21, 2024
2 parents eef5ec6 + b6f87a9 commit c9ea709
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
- [Stats] Added new CPU, Memory and Network statistics in the function results
- [IBM VPC] Added a new parameter to enable/disable resource existence check in the platform


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

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


## [v3.1.1]
Expand Down
3 changes: 1 addition & 2 deletions lithops/standalone/backends/aws_ec2/aws_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,7 @@ def dismantle(self, include_master=True):
ex.map(lambda worker: worker.stop(), self.workers)
self.workers = []

if include_master or self.mode == StandaloneMode.CONSUME.value:
# in consume mode master VM is a worker
if include_master:
self.master.stop()

def get_instance(self, name, **kwargs):
Expand Down
3 changes: 1 addition & 2 deletions lithops/standalone/backends/azure_vms/azure_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,7 @@ def dismantle(self, include_master=True):
ex.map(lambda worker: worker.stop(), self.workers)
self.workers = []

if include_master or self.mode == StandaloneMode.CONSUME.value:
# in consume mode master VM is a worker
if include_master:
self.master.stop()

def get_instance(self, name, **kwargs):
Expand Down
3 changes: 1 addition & 2 deletions lithops/standalone/backends/ibm_vpc/ibm_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,7 @@ def dismantle(self, include_master=True):
ex.map(lambda worker: worker.stop(), self.workers)
self.workers = []

if include_master or self.mode == StandaloneMode.CONSUME.value:
# in consume mode master VM is a worker
if include_master:
self.master.stop()

def get_instance(self, name, **kwargs):
Expand Down

0 comments on commit c9ea709

Please sign in to comment.