Skip to content

Commit 02a9936

Browse files
authored
Merge pull request #382 from sasjs/381-add-slight-delay-to-enable-file-detection
fix: extra bit of sleep for file recognition
2 parents c261745 + aca2fff commit 02a9936

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
lint:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99

1010
strategy:
1111
matrix:
@@ -28,7 +28,7 @@ jobs:
2828
run: npm run lint-web
2929

3030
build-api:
31-
runs-on: ubuntu-latest
31+
runs-on: ubuntu-20.04
3232

3333
strategy:
3434
matrix:
@@ -66,7 +66,7 @@ jobs:
6666
CI: true
6767

6868
build-web:
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-20.04
7070

7171
strategy:
7272
matrix:

api/src/controllers/internal/Session.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,16 @@ data _null_;
260260
rc=filename(fname,getoption('SYSIN') );
261261
if rc = 0 and fexist(fname) then rc=fdelete(fname);
262262
rc=filename(fname);
263-
/* now wait for the real SYSIN */
264-
slept=0;
265-
do until ( fileexist(getoption('SYSIN')) or slept>(60*15) );
263+
/* now wait for the real SYSIN (location of code.sas) */
264+
slept=0;fname='';
265+
do until (slept>(60*15));
266+
rc=filename(fname,getoption('SYSIN'));
267+
if rc = 0 and fexist(fname) then do;
268+
putlog fname=;
269+
rc=filename(fname);
270+
rc=sleep(0.01,1); /* wait just a little more */
271+
stop;
272+
end;
266273
slept=slept+sleep(0.01,1);
267274
end;
268275
stop;

web/src/index.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
body {
22
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5-
sans-serif;
3+
font-family:
4+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
5+
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
88
}
99

1010
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
11+
font-family:
12+
source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
1313
}
1414

1515
.container {

0 commit comments

Comments
 (0)