Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screwdriver-executor-base

Package Overview
Dependencies
Maintainers
8
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screwdriver-executor-base - npm Package Compare versions

Comparing version 7.4.0 to 7.5.0

34

index.js

@@ -169,6 +169,38 @@ 'use strict';

async _cleanUp() {
// no-op in case no implemented in extenders
// no-op in case not implemented in extenders
}
/**
* Adds information to the timeout queue
* @method status
* @param {Object} config Configuration object
* @param {String} config.buildId Unique ID for a build
* @param {String} config.startTime Start time fo build
* @param {String} config.buildStatus Status of build
* @return {Promise}
*/
startTimer(config) {
return this._startTimer(config);
}
async _startTimer() {
// no-op in case not implemented in extenders
}
/**
* Removes information from the timeout queue
* @method status
* @param {Object} config Configuration object
* @param {String} config.buildId Unique ID for a build
* @return {Promise}
*/
stopTimer(config) {
return this._stopTimer(config);
}
async _stopTimer() {
// no-op in case not implemented in extenders
}
/**
* Return statistics on the executor

@@ -175,0 +207,0 @@ * @method stats

2

package.json
{
"name": "screwdriver-executor-base",
"version": "7.4.0",
"version": "7.5.0",
"description": "Base class defining the interface for executor implementations",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -97,3 +97,33 @@ # Executor Base

#### StartTimer
##### Required Parameters
| Parameter | Type | Description |
| :------------- | :---- | :-------------|
| config | Object | Configuration Object |
| config.annotations | Object | Optional key/value object |
| config.buildStatus | String | The status of the build |
| config.buildId | String | The unique ID for a build |
| config.startTime | String | ISO start time of the build |
| config.jobId | String | job id of the build |
##### Expected Outcome
The StartTimer function is expected to add buildId as key and timeout config value to timeout queue
Default is no-op
##### Expected Return
A Promise that resolves or rejects.
#### StopTimer
##### Required Parameters
| Parameter | Type | Description |
| :------------- | :---- | :-------------|
| config | Object | Configuration Object |
| config.buildId | String | The unique ID for a build |
##### Expected Outcome
The StopTimer function is expected to remove key/value buildId from timeout queue
Default is no-op
##### Expected Return
A Promise that resolves or rejects.
## Extending

@@ -100,0 +130,0 @@ To make use of the validation function for start and stop, you need to

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc