diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index dfce27272..ccf071c80 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-15T02:31:06","documenter_version":"1.4.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-22T00:13:50","documenter_version":"1.4.0"}} \ No newline at end of file diff --git a/dev/getting-started/index.html b/dev/getting-started/index.html index 26b7a0ee1..46fc58f1c 100644 --- a/dev/getting-started/index.html +++ b/dev/getting-started/index.html @@ -48,7 +48,7 @@ ENV["RESULTS"] = string(mat_sum) """ sha256(project_toml) = 93a83d60d4a9c6a3d1438259fd506929eaad296b7e112e886b305781b85cb85b -sha256(manifest_toml) = 23e4f3a14ee7c1259424ba087975c33a4cc1f9fdffddb75dc32bdb0fd891ec5e
Job environment

In most cases, you also submit a Julia package environment (i.e. Project.toml and Manifest.toml files together with a job). That environment then gets instantiated before the user-provided code is run.

The script"" string macro, by default, attaches the currently active environment to the job. This means that any packages that you are currently using should also be available on the job (although only registered packages added as non-development dependencies will work). You can use Base.active_project() or pkg> status to see what environment is currently active.

To submit a job, you can simply call submit_job on it.

julia> j = JuliaHub.submit_job(s)JuliaHub.Job: jr-xf4tslavut (Submitted)
+sha256(manifest_toml) = 3ba5af2761d8fbdce2c23cdc3119a2ffb7294c8962a3c49f032ee123df14df43
Job environment

In most cases, you also submit a Julia package environment (i.e. Project.toml and Manifest.toml files together with a job). That environment then gets instantiated before the user-provided code is run.

The script"" string macro, by default, attaches the currently active environment to the job. This means that any packages that you are currently using should also be available on the job (although only registered packages added as non-development dependencies will work). You can use Base.active_project() or pkg> status to see what environment is currently active.

To submit a job, you can simply call submit_job on it.

julia> j = JuliaHub.submit_job(s)JuliaHub.Job: jr-xf4tslavut (Submitted)
  submitted: 2023-03-15T07:56:50.974+00:00
  started:   2023-03-15T07:56:51.251+00:00
  finished:  2023-03-15T07:56:59.000+00:00

The submit_job function also allows you to specify configure how the job gets run, such as how many CPUs or how much memory it has available. By default, though, it runs your code on a single node, picking the smallest instance that is available.

At this point, if you go to the "Jobs" page web UI, you should see the job there. It may take a few moments to actually start running. You can also call job on the returned Job object to refresh the status of the job.

julia> j = JuliaHub.job(j)JuliaHub.Job: jr-xf4tslavut (Running)
@@ -63,4 +63,4 @@
     startOnLoad: true,
     theme: "neutral"
 });
-
+
diff --git a/dev/guides/authentication/index.html b/dev/guides/authentication/index.html
index 4939eb57d..fec55e5d5 100644
--- a/dev/guides/authentication/index.html
+++ b/dev/guides/authentication/index.html
@@ -8,4 +8,4 @@
     startOnLoad: true,
     theme: "neutral"
 });
-
+
diff --git a/dev/guides/datasets/index.html b/dev/guides/datasets/index.html
index 997136cf4..9c23713f9 100644
--- a/dev/guides/datasets/index.html
+++ b/dev/guides/datasets/index.html
@@ -107,4 +107,4 @@
     startOnLoad: true,
     theme: "neutral"
 });
-
+
diff --git a/dev/guides/jobs/index.html b/dev/guides/jobs/index.html
index 3a017f44f..d0c8262cc 100644
--- a/dev/guides/jobs/index.html
+++ b/dev/guides/jobs/index.html
@@ -54,7 +54,7 @@
   println("hello world")
   """
   sha256(project_toml) = 93a83d60d4a9c6a3d1438259fd506929eaad296b7e112e886b305781b85cb85b
-  sha256(manifest_toml) = 23e4f3a14ee7c1259424ba087975c33a4cc1f9fdffddb75dc32bdb0fd891ec5e
+  sha256(manifest_toml) = 3ba5af2761d8fbdce2c23cdc3119a2ffb7294c8962a3c49f032ee123df14df43
 compute:
   JuliaHub.ComputeConfig
    Node: 3.5 GHz Intel Xeon Platinum 8375C
@@ -117,4 +117,4 @@
     startOnLoad: true,
     theme: "neutral"
 });
-
  • 1You can also e.g. upload datasets etc. But in that case the resulting data is not, strictly speaking, related to a specific job.
+
  • 1You can also e.g. upload datasets etc. But in that case the resulting data is not, strictly speaking, related to a specific job.
diff --git a/dev/index.html b/dev/index.html index 4317689fd..274f00264 100644 --- a/dev/index.html +++ b/dev/index.html @@ -4,4 +4,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/internal/index.html b/dev/internal/index.html index ae1abd85c..860debd80 100644 --- a/dev/internal/index.html +++ b/dev/internal/index.html @@ -4,4 +4,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/reference/authentication/index.html b/dev/reference/authentication/index.html index 036217233..d830c0d43 100644 --- a/dev/reference/authentication/index.html +++ b/dev/reference/authentication/index.html @@ -10,4 +10,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/reference/datasets/index.html b/dev/reference/datasets/index.html index c935f36f1..d71ff9780 100644 --- a/dev/reference/datasets/index.html +++ b/dev/reference/datasets/index.html @@ -45,4 +45,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/reference/exceptions/index.html b/dev/reference/exceptions/index.html index 776aa680d..20d792466 100644 --- a/dev/reference/exceptions/index.html +++ b/dev/reference/exceptions/index.html @@ -4,4 +4,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/reference/job-submission/index.html b/dev/reference/job-submission/index.html index bd656fbc1..a809566ce 100644 --- a/dev/reference/job-submission/index.html +++ b/dev/reference/job-submission/index.html @@ -37,7 +37,7 @@ @info "Extracting 'MY_PARAMETER'" get(ENV, "MY_PARAMETER", nothing) """ sha256(project_toml) = 93a83d60d4a9c6a3d1438259fd506929eaad296b7e112e886b305781b85cb85b - sha256(manifest_toml) = 23e4f3a14ee7c1259424ba087975c33a4cc1f9fdffddb75dc32bdb0fd891ec5e + sha256(manifest_toml) = 3ba5af2761d8fbdce2c23cdc3119a2ffb7294c8962a3c49f032ee123df14df43 compute: JuliaHub.ComputeConfig Node: 3.5 GHz Intel Xeon Platinum 8375C @@ -229,4 +229,4 @@ startOnLoad: true, theme: "neutral" }); - + diff --git a/dev/reference/jobs/index.html b/dev/reference/jobs/index.html index 66c973538..77934bcc0 100644 --- a/dev/reference/jobs/index.html +++ b/dev/reference/jobs/index.html @@ -63,4 +63,4 @@ startOnLoad: true, theme: "neutral" }); - +