Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 14db572

Browse files
committed
dummy command
1 parent b2717c7 commit 14db572

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

paperspace/cli/jobs/commands.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ def delete_job(job_id, api_key=None):
1919
jobs_api = client.API(config.CONFIG_HOST, api_key=api_key)
2020
command = jobs_commands.DeleteJobCommand(api=jobs_api)
2121
command.execute(job_id)
22+
23+
24+
def create_job(api_key=None):
25+
jobs_api = client.API(config.CONFIG_HOST, api_key=api_key)
26+
command = jobs_commands.CreateJobCommand(api=jobs_api)
27+
command.execute()

paperspace/commands/jobs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ def execute(self, job_id):
2626
self._log_message(response,
2727
"Job deleted",
2828
"Unknown error while deleting job")
29+
30+
31+
class CreateJobCommand(_JobsCommandBase):
32+
def execute(self, **kwargs):
33+
url = "/jobs/create"

0 commit comments

Comments
 (0)